From what I understand, in a function, static makes the variable retain it's value between calls to the function. What about initialization, say I have this function:
Would the variable be initialized to 0 every time I call this, or would it only be initialized to 0 once, retaining it's value from the last call to "functiona"?Code:int functiona(void) { static int number_of_times_called = 0; return ++number_of_times_called; }