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
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
What extern c means?
Are global variables static in c?
What are structure types in C?
What is pointers in c with example?
How was c created?
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is huge pointer in c?
What is cohesion in c?
Does c have class?
What are the functions to open and close file in c language?
What are structure members?
Why should I use standard library functions instead of writing my own?
What is the difference between far and near in c?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }