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
What are two dimensional arrays alternatively called as?
What are pointers really good for, anyway?
How can I avoid the abort, retry, fail messages?
What are actual arguments?
Is a house a mass structure?
Difference between MAC vs. IP Addressing
What is c programming structure?
What is the difference between the expression “++a” and “a++”?
Find MAXIMUM of three distinct integers using a single C statement
Explain what is the stack?
please explain every phase in the "SDLC" in the dotnet.
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
What is struct node in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
Why does everyone say not to use scanf? What should I use instead?