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

Assembler directives, What are assembler directives? Ans: These are th...

What are assembler directives? Ans: These are the instructions that direct the program to be executed. They have no binary corresponding so they are called pseudo-opcodes. The

Demostrate the example of spreadsheet, Now consider the following spreadshe...

Now consider the following spreadsheet: Formula in cell D2 is = (B2/C2) Replicating this formula (by highlighting then drag down to D7) gives all the formulas needed in cell

Enginering mechanics, if 2 forces are equal at an angle alpha between them...

if 2 forces are equal at an angle alpha between them - its resultant R and its direction

Explain the drawback of top down parsing of backtracking, Write down the dr...

Write down the drawback of top down parsing of backtracking. Following are disadvantages of top down parsing of backtracking: (i) Semantic actions can't be performed whereas

What is the security vulnerabilities for vba, Microsoft Visual basic has it...

Microsoft Visual basic has its host of problems one such being macros, Macros can be formed which can make havoc for a programmer with good intentions. Also the security issue rest

How do we save a selected sub-image to a file in gimp, Use "Edit->Paste As-...

Use "Edit->Paste As->New Image" menu command or press Ctrl-Shift-V key combination, then save newly created image.The script-fu-selection-to image can also be used to cut a selecti

What are the server specific middle wares, What are the server specific mid...

What are the server specific middle wares? Server specific middle wares. Their role in e-commerce. Additional features needed by e-commerce server. Middleware is the term of

Types of messages, Q. Types of messages? The messages can be of many ty...

Q. Types of messages? The messages can be of many types.  A specific field of all messages may be reserved to signify message type.  The message passing primitives are like thi

Determine the term - artisan software and bridgepoint, Determine the term ...

Determine the term - ARTiSAN Software and  BridgePoint ARTiSAN Software : This provides a variety of UML based CASE tools, which also includes a real time modeling tool.

What is mmu, What is MMU? MMU is the Memory Management Unit. It is a sp...

What is MMU? MMU is the Memory Management Unit. It is a special memory control circuit used for executing the mapping of the virtual address space onto the physical memory.

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