1.

What is the output of this program?
#include <iostream>
using namespace std;
int main()
{
int num1, num2;
int* Res;
Res = &num1;
num1 = 150;
num2 = 100;
*Res = 150;
num2 = *Res;
cout << *Res << " " << num2;
return 0;
}

A. 200 200
B. 100 100
C. 150 150
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs