M
Q. 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;
}
Related MCQs
Q. The power of machines to control the executiion of testd,compare their outcomes is called_____
Q. Services provided by kernel are………
Q. Which has comparatively high frequency component?
Q. With inode, the kernel contains two data structures………….
Q. The valid – invalid bit, in this case, when valid indicates?
Discusssion
Login to discuss.