Quote:
|
Originally Posted by Mark McLeod
"static int x;" uses RAM or data space just as "int x;" does. You can change the value of x from within your program while it's executing (e.g. "x=y+2;"), but the value only lasts as long as the RC is on. All data is lost or returns to initialized values when the RC is turned off or reset.
|
Whoops, my mistake, a static variable stays initialized between function calls but not neccessarily program runs.