Thread: Heap

  1. #1
    Banned
    Join Date
    Apr 2015
    Posts
    596

    Heap

    Hi guys ;
    I know what's heap and why we sometimes need it; but my question for every program we write we have stack and heap which its sizes are moving dynamically ; but my question is ; if I don't use any dynamic allocation ; will be there at all a space specified for a heap memory and not use? in other words ; I mean while we are not using any dynamic allocation in my program ; will there still a minimum fixed size of memory specified as a heap although we sometimes not using it but it's still fixed for a heap memory ...

    to sum up ; is there an offset size of heap memory that starts/grows from it in every program?

    thanks!
    Last edited by RyanC; 02-01-2019 at 01:56 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Possible answers are

    Yes

    No

    It depends...
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Banned
    Join Date
    Apr 2015
    Posts
    596
    Quote Originally Posted by Salem View Post
    Possible answers are

    Yes

    No

    It depends...
    Alright; thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. heap short and heap tree about help me pls
    By webwebcpp in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2014, 12:30 PM
  2. Help with the Heap
    By Blacky Ducky in forum C++ Programming
    Replies: 3
    Last Post: 02-14-2011, 05:42 PM
  3. heap
    By George2 in forum Windows Programming
    Replies: 2
    Last Post: 11-10-2007, 11:49 PM
  4. Anyone Know HEAP ?
    By Kam in forum C Programming
    Replies: 5
    Last Post: 09-14-2002, 07:47 AM
  5. heap
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 08-21-2002, 12:18 PM

Tags for this Thread