Vidyalelo
C++ Programming · Q54

Pointers and References in C++

Programming · C++ Programming · question 54

Q54

What will be the output of the following C++ code? #include using namespace std; int main() int a = 5, b = 10, c = 15; int *arr[ ] = &a, &b, &c; cout << arr[1]; return 0;

A.
5
B.
10
C.
15
D.
it will return some random number
Answer

Answer: Option D

Solution

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