1.

What is the output of this program?
#include 
using namespace std;
int main()
{
int num = 11;
int & numref = num;
num++;
cout << "The value of num is " << numref;
return 0;
}

A. 12
B. 11
C. Garbage value
D. Compilation Error
E. Runtime Error
Answer» B. 11


Discussion

No Comment Found

Related MCQs