Q. where is the below variables stored ?
- volatile, static, register

Answer Posted / kiruthikau

local variables-->stack
global variable-->data memory
register variable-->CPU registers
static variable-->main memory


Volatile is a type qualifier not a storage class specifier.
So it does not determine storage location.

When we declare a variable as volatile the compiler will
examine the value of the variable each time it is
encountered to see if an external factor has changed the value.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are two dimensional arrays alternatively called as?

960


What are pointers really good for, anyway?

825


How can I avoid the abort, retry, fail messages?

881


What are actual arguments?

865


Is a house a mass structure?

862


Difference between MAC vs. IP Addressing

860


What is c programming structure?

849


What is the difference between the expression “++a” and “a++”?

887


Find MAXIMUM of three distinct integers using a single C statement

835


Explain what is the stack?

855


please explain every phase in the "SDLC" in the dotnet.

2403


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

886


What is struct node in c?

831


Multiply an Integer Number by 2 Without Using Multiplication Operator

563


Why does everyone say not to use scanf? What should I use instead?

1091