staticint x; // global variable is visible only in this translation unitstaticvoid f() // global function is visible only in this translation unit
{
}
void g()
{
staticint a; // behaves like a global visible only in this function
}
class Tmp
{
staticint b; // all objects of type Tmp will see the same bpublic:
staticvoid sf() // function can be used without an instantiation
{
}
};
int Tmp::b; // b must be defined externally