Hi guys. need some help with stack and heap.
1.Please define stack and heap: I think at the moment the stack is all the memory a program need ie. if my program has int x,y then the stack size is 4 (bytes) is this correct?
2. the heap is all the memory above/beyond the stack that has been allocated by the operating system when my compiler was loaded is this correct?
3. the space managed in the heap may not be contiguous and the free storage is kept as a list of free blocks.
thanks for all the help.