Heap Memory in C Programming

后端 未结 4 1556
抹茶落季
抹茶落季 2020-12-18 10:25

What exactly is heap memory?

Whenever a call to malloc is made, memory is assigned from something called as heap. Where exactly is heap. I know that a program in mai

4条回答
  •  醉话见心
    2020-12-18 11:11

    Basically, after memory is consumed by the needs of programs, what is left is the heap. In C that will be the memory available for the computer, for virtual machines it will be less than that.

    But, this is the memory that can be used at run-time as your program needs memory dynamically.

    You may want to look at this for more info:

    http://computer.howstuffworks.com/c28.htm

提交回复
热议问题