heap memory

yoge05

yoge05

@yoge05-16YB0U Oct 16, 2024

hi,
In c whenever dynamic memory allocation functions (eg:malloc) are used ,memory is allocated in heap , but whether this is a virtual memory or secondary memory ?
plz reply

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • rishi0922

    rishi0922

    @rishi0922-a2xTAa Sep 29, 2010

    The heap allows programs to allocate memory exactly when they need it during the execution of a program.

    I think heap memory is the virtual memory because it lasts for some time ..

  • yoge05

    yoge05

    @yoge05-16YB0U Jun 11, 2023

    k thanks........