Morgan Stanley Interview Question

What does the static keyword in C do?

Interview Answer

Anonymous

Feb 11, 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.