Chapter 14: Problem 11
What is the output of the following C++ code? int *p; int *q; p = new int; q = new int; *p = 27; *q = 35; cout << *p << " " << *q << endl; *q = *p; *p = 73; cout << *p << " " << *q << endl; p = new int; *p = 36; q = p; cout << *p << " " << *q << endl;
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.