Question: 7. (10 pts.) Given the following code: int n = 5; int m 8; public void f(int x, int y) int n = 4; x
7. (10 pts.) Given the following code: int n = 5; int m 8; public void f(int x, int y) int n = 4; x = n; public static void main(Stringt] args) f (m, n) System.out.println(n): System.out.println(m): passed using what would the output be if the parameters were a. call by value? b. call by reference? c. call by value-result? d. call by macro expansion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
