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 is collections in .net? why we use?

2193


What is the difference between final finally and finalize in c#?

981


Differentiate between static class and singleton instance?

1061


Is it possible to force garbage collector to run?

948


What are the differences between a class and a struct?

1178


What is before string in c#?

977


What is data quality assurance?

952


What does mean before a string in c#?

1093


If you donot specify an access modifier for a method, what is the default access modifier?

1097


What is meant by clr?

1068


What is the use of ispostback in c#?

925


What is serialization in unity?

953


How do you access a constant field declared in a class?

956


Why do we use class in c#?

979


How do you set a class path?

928