1.

What is the output of this program?
#include <iostream>
using namespace std;
void duplicate (int& P, int& Q, int& R)
{
P *= 2;
Q *= 2;
R *= 2;
}
int main ()
{
int M = 2, N = 4, O = 6;
duplicate (M, N, O);
cout << M < return 0;
}

A. 4 8 12
B. 12 8 4
C. 8 12 4
D. Compilation Error
E. None of these
Answer» B. 12 8 4


Discussion

No Comment Found

Related MCQs