- Exercise 3 Parameter Passing What Are The Values Of Y And Z At The End Of The Following Block Under The Assumption That 1 (61.34 KiB) Viewed 10 times
Exercise 3. Parameter Passing What are the values of y and z at the end of the following block under the assumption that
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Exercise 3. Parameter Passing What are the values of y and z at the end of the following block under the assumption that
Exercise 3. Parameter Passing What are the values of y and z at the end of the following block under the assumption that both parameters x are passed: (i) call by value, (ii) call by reference, and (iii) call by value-result. { int y; int z; y = 7; { int f(int x) { X = x+1; y = x; x = x+1; return y }; int g(int x) { y = f(x)+1; x := f(y)+3; return x } }; z := g(y)