In which area global, external variables are stored?
Answer Posted / 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 |
Post New Answer View All Answers
What is data type long in c?
What is a 'null pointer assignment' error?
When should the register modifier be used? Does it really help?
Why is c called a mid-level programming language?
What is conio h in c?
Why do we use return in c?
Does c have class?
Why do we use static in c?
How do you generate random numbers in C?
Explain how can I write functions that take a variable number of arguments?
What is structure in c definition?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Explain how do you determine whether to use a stream function or a low-level function?
What is a static variable in c?
What are the 5 types of organizational structures?