Vidyalelo
C++ Programming · Q94

Pointers and References in C++

Programming · C++ Programming · question 94

Q94

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 << *p; return 0;

A.
4
B.
5
Answer
C.
6
D.
7

Answer: Option B

Solution

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