Can I know where the volatile
variable is getting stored in the memory?
If i declare globally means where does it get stored in the memory?
volatile int a =10; int main() { printf("Global A value=%d",a); return 0; }
If i declare locally inside the function means where does it get stored in the memory?
int main() { volatile int a =10; printf("Local A value=%d",a); return 0; }
Does it get stored in Stack / RAM / Data segment ?
Please clarify my doubts.