What are the difference between heap and stack, Computer Engineering

Assignment Help:

What are the difference between heap and stack?

The Stack is more or less responsible for maintaining track of what's executing into our code or what's been "called". The Heap is less or more responsible for maintain track of our things (our data, well... most of this - we'll get to which later).

Think of the Stack like a series of boxes stacked one onto top of the subsequently. We remain track of what's going on into our application by stacking other box on top every time we call a process (termed as a Frame). We can only utilize what's in the top box onto the stack. While we're completed with the top box (the way is done executing) we throw this away and proceed to use the stuff into the prior box on the top of the stack. The Heap is same accept which its purpose is to hold information as not remain track of execution most of the time, therefore anything in our Heap can be accessed at any time. Along with the Heap, there are no constraints like to what can be accessed as in the stack. The Heap is as the heap of clean laundry onto our bed which we have not taken the time to put away until now - we can grab what we require quickly. The Stack is as the stack of shoe boxes into the closet where we have to take off the top one to find to the one underneath this.


Related Discussions:- What are the difference between heap and stack

What must the requirement of designer to get memory capacity, In applicatio...

In applications where the required memory capacity cannot be satisfied by a single available memory IC chip, what should the designer do to meet this requirement? Ans: If th

How address resolution is performed with table lookup, How address resoluti...

How address resolution is performed with table lookup? Explain with the help of a suitable example. The approach of table lookup to address resolution needs a data structure wh

Explain about dual in line memory modules, Q. Explain about Dual In line Me...

Q. Explain about Dual In line Memory Modules? A DIMM is capable of delivering 64 data bits right away. Usual DIMM capacities are 64MB and up. Every DIMM has 84 gold patted conn

By which the information is stored in ROM, The information in ROM is stored...

The information in ROM is stored ? Ans. By the manufacturer throughout fabrication of the device.

Define dynamic linking, Define dynamic linking.  Dynamic linking is sam...

Define dynamic linking.  Dynamic linking is same to dynamic loading, rather that loading being postponed unless execution time, linking is postponed. This feature is usually us

Show the internet protocols, A communication protocol is an agreement which...

A communication protocol is an agreement which specifies a common language two computers use to exchange messages. For instance, a protocol specifies exact format and meaning of ev

What is process, In Windows, Thread is a unit of implementation. Process is...

In Windows, Thread is a unit of implementation. Process is the environment in which thread implements. Scheduler, schedules the Threads not the process. In Unix variants, Thread is

What do you understand by scan codes, Q. What do you understand by Scan Cod...

Q. What do you understand by Scan Codes? A scan code is a code produced by a microprocessor in keyboard when a key is pressed and is unique to key struck. When this code is rec

Demux., Implement the full substractor using 8:1demux

Implement the full substractor using 8:1demux

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd