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 the correct declaration of main?
What is a memory leak? How to avoid it?
Is swift based on c?
Why we use int main and void main?
What is the difference between near, far and huge pointers?
What is the process to create increment and decrement stamen in c?
Explain how do you declare an array that will hold more than 64kb of data?
What are predefined functions in c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
How can I change the size of the dynamically allocated array?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What does void main return?
What is output redirection?
What is atoi and atof in c?