CrazyEngineers
  • heap memory

    yoge05

    Member

    Updated: Oct 22, 2024
    Views: 1.8K
    hi,
    In C whenever memory is allocated dynamically (eg:malloc), the memory allocated is heap memory , but is this a virtual memory or secondary memory? plz reply
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • sushant005

    MemberSep 29, 2010

    first heap memory is a part of main memory and is logical concept is not pre allocated and as you said dynamically (malloc) so it is a dynamic allocation of meory in RAM is called as heap memory.But i think it not exactly taking all the part of memory it also takes some of the part of virtual memory.

    do me correct if i m wrong.
    Are you sure? This action cannot be undone.
    Cancel
  • Reya

    MemberSep 29, 2010

    Heap is a region of contiguous virtual memory takes up a whole page or a fraction of page for storage.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register