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 delete a file?
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
What are the 3 types of structures?
write a program of palindrome(madam=madam) using pointer?
write a program to arrange the contents of a 1D array in ascending order
Explain setjmp()?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Hi Every one...........I have been selected for the SBI Clerk. But i m one month Pregnanat. So anyone please suggest me, is they take any objection on my joining .
4 Answers State Bank Of India SBI,
writ a program to compare using strcmp VIVA and viva with its output.
How do I swap bytes?
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
What is the relation between # and include<stdio.h>