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 |
What is the use of extern in c?
can anyone please tell about the nested interrupts?
Explain the difference between getch() and getche() in c?
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?
Describe newline escape sequence with a sample program?
What are pointers? What are different types of pointers?
write a programming in c language, 1 3 5 7 9 11
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }
what is the difference between normal variables and pointer variables..............
15 Answers HP, Infosys, Satyam, Vivekanand Education Society,
Are local variables initialized to zero by default in c?
what is difference between overriding and overloading?