What is the output of the following C++ code?
int *p = new int;
int *q = new int;
*p = 26;
*q = 10;
cout << 2 * (*p) << " " << (*q + 3) << endl;
p = q;
*p = 42;
cout << *p << " " << *q << endl;
q = new int;
*p = 25;
*q = 18;
cout << *p << " " << *q << endl;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.