A(2) returns 18.
int B(int x) { x++; return x*x; } int A(int x) { int y = B(x); return y*x; }
| A | ||
|---|---|---|
|
|
|
|
|
| A | |||
|---|---|---|---|
|
Now A returns 2*9 = 18.