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 invoke another program or command and trap its output?
How can you pass an array to a function by value?
What is typedf?
how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"
int i=10; printf("%d %d %d", i, i=20, i);
By using C language input a date into it and if it is right?
Why do we use & in c?
what is the difference between structure and union?
How can a program be made to print the line number where an error occurs?
write an interactive program to generate the divisors of a given integer.
Explain the difference between malloc() and calloc() in c?
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?