This lab has two parts. It will give you practice working with memory allocation and deallocation in C.
To Do
You should attempt each section, writing code and making sure that it compiles. When you have done this, you should check your work against the provided solution.
Download lab-memory.c and work on the exercises described in the comments. When you are finsihed with a section, use this solution to check your work.
If you run out of time, it is not necessary to finish part 2.