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 is the use of linkage in c language?
What is f'n in math?
How do you use a pointer to a function?
What is string length in c?
Explain what is the difference between functions getch() and getche()?
What is const and volatile in c?
Write a C program in Fibonacci series.
What are the different types of pointers used in c language?
Why do we use int main instead of void main in c?
Write a program to reverse a linked list in c.
What are the types of bitwise operator?
What are the types of unary operators?
What is the difference between far and near in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is keyword with example?