Q. What will be the output of the following C++ function?
Code: int main()
{
register int i = 1;
int *ptr = &i;
cout << *ptr;
return 0;
}
β
Correct Answer: (C)
Compiler error may be possible