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