1.

What is the output of this program?
#include 
using namespace std;
void copy (int& p, int& q, int& r)
{
p = p * 1;
q = q * 2;
r = r * 3;
}
int main ()
{
int m = 6, n = 3, o = 2;
copy (m, n, o);
cout << "M = " << m << ", N = " << n << ", O = " << o;
return 0;
}

A. M = 6, N = 6, O = 6
B. N = 6, O = 6, M = 6
C. O = 6, M = 6
D. Compilation Error
E. None of these
Answer» B. N = 6, O = 6, M = 6


Discussion

No Comment Found

Related MCQs