vedadribabu
Newbie level 5
Please clarify my doubt??
what is the difference?
1 .int a=1;
int a=2;
2.volatile int a=1;
volatile int a=2;
since volatile means variable can be changed at any time if we don't declare volatile also a is becoming 2 then what is reason if we decalre volatile?
what is the difference?
1 .int a=1;
int a=2;
2.volatile int a=1;
volatile int a=2;
since volatile means variable can be changed at any time if we don't declare volatile also a is becoming 2 then what is reason if we decalre volatile?