CSCI 221 F20Solutions to the Practice Midterm #1BThese are my solutions to practice midterm exam B. Below are the C++ source files for Problems 1, 2, 4, and 5. Below is my diagram of the memory for Problem 3. Rather than drawing pointers, I used made-up addresses for the stack frame and for the heap-allocated data. I decided to have my stack grow downward from address 32767, and my heap data start at address 16384.
The data region for the bytes of |