Vidyalelo
C++ Programming · Q31

Pointers and References in C++

Programming · C++ Programming · question 31

Q31

What will be the output of the following C++ code? #include using namespace std; int main() int const p = 5; cout << ++p; return 0;

A.
5
B.
6
C.
Error
Answer
D.
8

Answer: Option C

Solution

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