Please refer to the following code that is in the same translation unit:
static int global_var; // file scope in C and global namespace scope in C++
global_var could be accessed from void g() in the same compilation unit, that is the difference.
global_var
void g()