Please wait...
THANKU FOR BEING A PART OF OUR JOURNEY TO BRING "REVOLUTION IN EDUCATION"
We Genuinely APPRECIATE your PATIENCE

41
M: +3.00/-1.00

What is the output of this C++ program?
#include <iostream>
using namespace std;
void square (int *x);
{
*x = (*x)++*(*x);
}
void square (int *x, int *y)
{
*x = (*x)*--(*y);
}
int main ()
{
int number = 30;
square(&number, &number);
cout << number;
return 0;
}

[ISRO CS May 2017]
A
B
C
D