Memory Fundamentals Quiz

Test understanding of heap memory and sbrk


1. What does sbrk(0) return?
2. Why can't we simply use sbrk(-n) to return memory to the OS after every free()?