1.

What is the output of this program?
#include 
using namespace std;
void Add(int p, int q, int & r)
{
p = q + r;
p = q + r;
r = p + q;
}
int main()
{
int n = 6, m =4;
Add(n, m, m);
cout << n << " " << m;
return 0;
}

A. 6 12
B. 6
C. 12
D. 6 4
E. 12 6
Answer» B. 6


Discussion

No Comment Found

Related MCQs