Vidyalelo
C++ Programming · Q72

Pointers and References in C++

Programming · C++ Programming · question 72

Q72

What will be the output of the following C++ code? #include using namespace std; int main() int arr[] = 4, 5, 6, 7; int *p = (arr + 1); cout << *arr + 9; return 0;

A.
12
B.
5
C.
13
Answer
D.
error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board