1. What are the three allocation mechanisms described in this chapter?
2. What is the heap?
3. Why does it make sense to start the heap and the stack at opposite ends of memory and have them grow toward each other?
4. What declaration would you use to create and initialize each of the following variables: a) A pointer bp that points to a Boolean value b) A pointer named pp that points to a Point with the coordinates (3, 4) c) A dynamic array called names capable of holding 100 C++ strings?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here