Vidyalelo
C++ Programming · Q46

Variables and Data Types in C++

Programming · C++ Programming · question 46

Q46

What will be the output of the following C++ function? int main() register int i = 1; int *ptr = &i; cout << *ptr; return 0;

A.
0
B.
1
C.
Compiler error may be possible
Answer
D.
Runtime error may be possible

Answer: Option C

Solution

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