Q. where is the below variables stored ?
- volatile, static, register

Answer Posted / banavathvishnu

Qualifier Storage
========= ========

1. static Data area

2. register CPU register, if CPU register are
busy with some other work, it will be treated as local and
will be stored on stack

3. Volatile is just a qualifier it does not change the
storage class, if it defined volatile var as global it will
be stored in data area, and if it defined in a funciton it
will be stored in stack.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to implement queue.

898


How many header files are in c?

769


what is the basis for selection of arrays or pointers as data structure in a program

4059


Can the curly brackets { } be used to enclose a single line of code?

949


how is the examination pattern?

1808


State the difference between realloc and free.

851


How to implement a packet in C

2633


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

835


Why do we use int main instead of void main in c?

915


What is clrscr ()?

888


What is a structure member in c?

775


What is d scanf?

805


Explain how many levels deep can include files be nested?

846


Write a program for finding factorial of a number.

863


Is c compiled or interpreted?

915