Morgan Stanley interview question

What does the static keyword in C do?

Interview Answer

Anonymous

11 Feb 2012

Static variables are initialized at the compile time, unlike automatic/local variables who are initialized at run time. static variable's initial value will remain same throughout the compile time unless you forcefully change them.