title: Static variables in C and C++
body: <p>Is there any difference between a variable declared as <code>static</code> outside any function between C and C++. I read that <code>static</code> means file scope and the variables will not be accessible outside the file. I also read that in C, global variables are <code>static</code> . So does that mean that global variables in C can not be accessed in another file?</p>