Chapter 11 in brief


What is the heap? & Is it scary? The buffer comes from a region of memory known as the heap, which is separate from the stack and also sometimes we need a memory that is accessible form any function. Whit this explanation Nope.
How to use it? Is it hard? 1- Declare a pointer 2- allocate it in memory using malloc() 3- do operation on it 4- clean & free that memory using free 5- Forget where that memory is (assign NULL to pointer). Again Nope.


Were there supposed to be questions or a point here? I don’t understand what you wrote.