int y = 0;
int y1;
void f1(void)
{
y = 2;
y1 = 2;
}
When I reset the processor y gets reset to 0 and y1 remains at 2. Most C compiler I have used will also reset y1 to 0. I know this is not define in the C standard. Is there an easy method of clear ALL the RAM before use?