Question: Given the following code: int n = 4 ; int m = 7 ; public void f ( int x , int y ) {

Given the following code:
int n =4;
int m =7;
public void f(int x, int y){
int n =9;
x = n;
m = y -1;
public static void main (Stringll args)f
f (m, n) ;
Systen. out print n(m)
}
What would the output be if the parameters were passed using
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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!