1.

What is the output of this program?
#include 
using namespace std;
void square (int *p)
{
*p = (*p + 1) * (*p);
}
int main ( )
{
int n = 11;
square(&n);
cout << n;
return 0;
}

A. 11
B. 123
C. 321
D. 132
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs