Q. What is the output of this program?
Code:
#include
using namespace std;
void square (int *p)
{
*p = (*p + 1) * (*p);
}
int main ( )
{
int n = 11;
square(&n);
cout << n;
return 0;
}
β
Correct Answer: (D)
132