Vidyalelo
C++ Programming · Q15

Pointers and References in C++

Programming · C++ Programming · question 15

Q15

What is the output of the following code: int arr[] = 1, 2, 3; cout << *arr; in C++?

A.
1
Answer
B.
2
C.
3
D.
Compilation error

Answer: Option A

Solution

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