Question: Given the following code: test(int k,int j){ k=k+1… SOLVED

$30.00

 

Category:

Description

Question: Given the following code: test(int k,int j){ k=k+1… SOLVED

Given the following code:

test(int k,int j){

k=k+1;

j=j+2;

}

m=5;

n=3;

test(m,n)

write m,n;

What values will be written for m and n respectively, using the following parameters pass methods?

  1. Passing by value result

2.Passing by reference

3.Passing by value

 


error: Content is protected !!