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 character set?
write a program to display all prime numbers
How many main () function we can have in a project?
How can I prevent another program from modifying part of a file that I am modifying?
What is malloc calloc and realloc in c?
How can I sort more data than will fit in memory?
Why is c so important?
What does int main () mean?
Explain how can a program be made to print the name of a source file where an error occurs?
What is the use of gets and puts?
What are the 5 data types?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is the use of sizeof?
Subtract Two Number Without Using Subtraction Operator
What are the types of operators in c?