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


Please Help Members By Posting Answers For Below Questions

What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1785


Explain union.

638


Can we add pointers together?

620


please send me the code for multiplying sparse matrix using c

1728


What is typedef?

679






Describe newline escape sequence with a sample program?

659


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1903


What is memory leak in c?

637


What is the c value paradox and how is it explained?

575


How main function is called in c?

631


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1863


Add Two Numbers Without Using the Addition Operator

355


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1630


How can I list all of the predefined identifiers?

581


4. main() { int c=- -2; printf("c=%d",c); }

1370