1.

What is the output of this program?
#include <iostream> 
using namespace std;
int main()
{
int num1 = 7, num2 = 3, Res;
num1 = ++num1;
num2 = --num2;
Res = num1 + ++num1;
cout << Res;
return 0;
}

A. 7
B. 3
C. 17
D. 18
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs