1.

What is the output of this program?
#include <iostream>
using namespace std;
int main()
{
int num;
int *ptr;
num = 12;
ptr = &num;
cout << *ptr;
return 0;
}

A. 0
B. 12
C. Compilation Error
D. Runtime Error
E. None of these
Answer» C. Compilation Error


Discussion

No Comment Found

Related MCQs