#include using namespace std; void square (int *p) { *p = (*p + 3) * (*p); } int main ( ) { int n = 15; square(&n); cout << n; return 0; }
We have increased the x value in operand as p + 1, so it will return as 270.
Previous Question Next Question
Your comments will be displayed only after manual approval.