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
How do I get an accurate error status return from system on ms-dos?
Explain what is the advantage of a random access file?
What is the use of sizeof?
What is meant by inheritance?
State the difference between x3 and x[3].
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Can you please explain the difference between strcpy() and memcpy() function?
Explain what is the difference between a string and an array?
What are data structures in c and how to use them?
What’s a signal? Explain what do I use signals for?
What do you mean by dynamic memory allocation in c? What functions are used?
What is the use of bitwise operator?
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 ].
What is the purpose of sprintf() function?
What is non linear data structure in c?