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
Are global variables static in c?
How can I change their mode to binary?
What is character set?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Do you know what are bitwise shift operators in c programming?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Can the sizeof operator be used to tell the size of an array passed to a function?
What are the properties of union in c?
What is a #include preprocessor?
i got 75% in all semester am i eligible for your company
What are the rules for identifiers in c?
Are bit fields portable?
Explain a file operation in C with an example.
What is the difference between text and binary modes?
What does %2f mean in c?