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

What is array of structure in c programming?

728


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

773


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5439


What will be the outcome of the following conditional statement if the value of variable s is 10?

731


Which is better pointer or array?

574






Explain the use of 'auto' keyword

649


Explain how can I remove the trailing spaces from a string?

595


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

2224


How many types of arrays are there in c?

572


In which language linux is written?

577


Dont ansi function prototypes render lint obsolete?

584


What does %c mean in c?

626


Explain can you assign a different address to an array tag?

617


What is volatile variable how do you declare it?

541


Write a program to swap two numbers without using a temporary variable?

582