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