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

Explain what are binary trees?

824


What is 1f in c?

2294


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1922


What is d'n in c?

824


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1934


What does != Mean in c?

801


Where static variables are stored in memory in c?

727


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

882


write a program to print largest number of each row of a 2D array

2093


I need a sort of an approximate strcmp routine?

836


What is #define in c?

819


What are terms in math?

796


What is a macro, and explain how do you use it?

825


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

1628


Write a program to check whether a number is prime or not using c?

803