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

How do I get an accurate error status return from system on ms-dos?

634


Explain what is the advantage of a random access file?

650


What is the use of sizeof?

540


What is meant by inheritance?

620


State the difference between x3 and x[3].

640






Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

569


Can you please explain the difference between strcpy() and memcpy() function?

588


Explain what is the difference between a string and an array?

623


What are data structures in c and how to use them?

662


What’s a signal? Explain what do I use signals for?

593


What do you mean by dynamic memory allocation in c? What functions are used?

638


What is the use of bitwise operator?

676


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

625


What is the purpose of sprintf() function?

587


What is non linear data structure in c?

559