Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is stack and heap?

Answer Posted / kannan.s

When a program is loaded into memory, it is organized into
three areas of memory, called segments: the text segment,
stack segment, and heap segment. The text segment
(sometimes also called the code segment) is where the
compiled code of the program itself resides. This is the
machine language representation of the program steps to be
carried out, including all functions making up the program,
both user defined and system.

The remaining two areas of system memory is where storage
may be allocated by the compiler for data storage. The
stack is where memory is allocated for automatic variables
within functions. A stack is a Last In First Out (LIFO)
storage device where new storage is allocated and
deallocated at only one ``end'', called the Top of the
stack.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does namespace mean?

1000


What is dao in c#?

922


Explain about Error handling and how this is done

1001


What are extensions in c#?

1026


What is difference between events and delegates?

986


What is executereader in c#?

957


What is difference between asp net and c# net?

1059


How to get the sum of last 3 items in a list using lambda expressions?

966


Can a class be private in c#?

1037


Explain the difference between proc. Sent by val and by sub?

966


What is collection class c#?

970


Why is it not a good idea to use empty destructors?

1092


What are the 2 broad classifications of data types available in c#?

914


What is the difference between package and interface?

972


What is the difference between list and array in c#?

1116