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 array of structure in c programming?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What will be the outcome of the following conditional statement if the value of variable s is 10?
Which is better pointer or array?
Explain the use of 'auto' keyword
Explain how can I remove the trailing spaces from a string?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
How many types of arrays are there in c?
In which language linux is written?
Dont ansi function prototypes render lint obsolete?
What does %c mean in c?
Explain can you assign a different address to an array tag?
What is volatile variable how do you declare it?
Write a program to swap two numbers without using a temporary variable?