Answered Questions

  • Memory Stack or Heap

    which type of memory(stack or heap)is used by static and external variables?

  • What is the heap?

    The heap is where malloc(), calloc(), and realloc() get memory. Getting memory from the heap is much slower than getting it from the stack. On the other hand, the heap is much more flexible than the stack. Memory can be allocated at any time and deallocated in any order. Such memory isn’t deallocated automatically; you have to call free(). Recursive data structures are almost always implemented with...

    psjetha

    • Sep 1st, 2009

    Heap is a dynamic memory of main memory. In main memory there are several type of memory management like fixed, static, dynamic (it is just memory area which can be used by any task or process but it ...