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
Explain zero based addressing.
What is pointer and structure in c?
What does %d do in c?
By using C language input a date into it and if it is right?
plz let me know how to become a telecom protocol tester. thank you.
What is character set?
Why are all header files not declared in every c program?
How can I call a function with an argument list built up at run time?
Explain what are bus errors, memory faults, and core dumps?
What is the difference between struct and typedef struct in c?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What is the difference between array and linked list in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is static function in c?
C program to find all possible outcomes of a dice?