Question: What is output? public static void swap ( int val 1 , int val 2 ) { int temp; temp = val 1 ; val
What is output?
public static void swapint val int val
int temp;
temp val;
val val;
val temp;
public static void mainString args
int x;
int y;
x ;
y ;
swapx y;
System.out.printlnx y;
Question Answer
a
b
c
d
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
