Question: Show the output: int *p, *q, num; int n = 4; num = 5; q = &n; cout < < num < <
Show the output: int *p, *q, num; int n = 4; num = 5; q = &n; cout < < num " < < *q < < endl; num = 9; p = # cout < < num p = new int [n]; for (int i = 0; i < n; i++) p[i] = i + 10; for (int i = 0; i < n; i++) *p < < endl; cout < < *(p + i) < < endl;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Answer There are a few syntax errors in your code snippet Heres ... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
