Hi,
There are five segments in c:-
1.Data Segment
2.Code Segment
3.Stack Segment
4.Bss segment
5.Heap segment
Can any one explain what things are stored in which segment when a c program
actually runs?
I have read that uninitialized and initialized global variables are stored
in bss and stack segment respectively.Functions and their variables are
stored on stack segment and instructions on code segment.Dynamic memory is
allocated from heap segment.....then where static variables local to a
function are stored if stack destroys after function call but they r
retained.........plz someone explain.....

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to