This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Variable initialization.



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?