First page Back Continue Last page Graphics
Static Duration Variable
Add the static keyword to a function's local variable to preserve its value from activation to activation.
The book says it sets the intial values to zero for static variables. (seems to work!)
Don't depend on any kind of “automatic” initialization. Always do it for yourself to be absolutely sure!