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 what are binary trees?
What is 1f in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is d'n in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What does != Mean in c?
Where static variables are stored in memory in c?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
write a program to print largest number of each row of a 2D array
I need a sort of an approximate strcmp routine?
What is #define in c?
What are terms in math?
What is a macro, and explain how do you use it?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
Write a program to check whether a number is prime or not using c?