Page 1 of 1

What will be the output of the following C++ function?

Posted: Wed Jul 13, 2022 7:50 pm
by answerhappygod
int main() { register int i = 1; int *ptr = &i; cout << *ptr; return 0; }
a) Runtime error may be possible
b) Compiler error may be possible
c) 1
d) 0