Sponsored Links


Results 1 to 6 of 6

Thread: difference between Heap and Stack memory

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    Icon11 difference between Heap and Stack memory

    Sponsored Links



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    8,835
    Heap and stack are both memory area. The primitive data types are created on stach whereas objects are created on heap memory area. The stack stores the reference of an object (stored on heap).

  3. #3

    Heap and Stack

    Stack is used for static memory allocation and Heap for dynamic memory allocation, both stored in the computer's RAM .

    You can use the stack if you know exactly how much data you need to allocate before compile time and it is not too big. You can use heap if you don't know exactly how much data you will need at runtime or if you need to allocate a lot of data.

    More about.......Stack and Heap

    Helsy

  4. #4

  5. #5
    Junior Member
    Join Date
    Mar 2019
    Location
    United Arab Emirates
    Posts
    2
    Differences between Stack and Heap. Stack is used for static memory allocation and Heap for dynamic memory allocation, both stored in the computer's RAM . ... This makes it really simple to keep track of the stack, freeing a block from the stack is nothing more than adjusting one pointer.

  6. #6
    Knowing about this memory types has truly made me the most happiest person in the world. Now storage of data is more easier through these stacks based up on it's sophistication technology as per australian writings reviews. And looking forward to its implementation on all levels of shortages.

    Sponsored Links

  7. Sponsored Links

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Heap on the wood the wind is chill But let
    By Entboy in forum Christmas
    Replies: 0
    Last Post: 11-18-2014, 05:34 PM
  2. what is heap and why we use it
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 05-31-2012, 01:48 AM
  3. Replies: 0
    Last Post: 01-04-2012, 10:43 PM
  4. which situation we use stack.h and why we use stack.cpp
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 11-05-2011, 05:06 PM
  5. stack during function call in C++ 2011
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 11-05-2011, 05:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft