In which area global, external variables are stored?
Answers were Sorted based on User's Feedback
Answer / vishnu
Global variables if not initialised when decleared then it
will be stored in BSS(Block Segmented by Symbol). If it is
initilised then it will be stored in Data area.
Extern variables are stored int Data area.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / samrat
Global & static variables are stored in data segment.
If we look at other types.. Local Variables are stored in the Stack. Register variables are stored in Register.
Dynamically allocated memory uses the Heap. Instructions are stored in code segment and the extern variables are stored in the data segment.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / mrinal
The global or external variables are stored on the HEAP.
| Is This Answer Correct ? | 2 Yes | 7 No |
How can I sort a linked list?
Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.
What is the use of void pointer and null pointer in c language?
disadvantages of realloc ?
What is memory leak in c?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Explain high-order bytes.
what is differnence b/w macro & functions
Why clrscr is used in c?
What is the use of the sizeof operator?
Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
m=++i&&++j(||)k++ printf("%d"i,j,k,m)