1.

Output of following C++ program?#include<iostream>using namespace std;int main(){int x = 10;int& ref = x;ref = 20;cout << "x = " << x << endl ;x = 30;cout << "ref = " << ref << endl;return 0;}(A)x = 20ref = 30(B)x = 20ref = 20(C)x = 10ref = 30(D)x = 30ref = 30

Answer»


Discussion

No Comment Found