1.

What will be output of this function?
#include 
using namespace std;
int main()
{
register int p = 15;
int *ptr = &p;
cout << *ptr;
return 0;
}

A. Compilation Error
B. Runtime Error
C. 15
D. 10
E. None of these
Answer» D. 10


Discussion

No Comment Found

Related MCQs