State the output of the following code?
int choice =1, x =0, y=0, z=0;
switch( choice++)
{
case 2: x++;
y--;
z++;
break;
case 3: x+ =2;
y+= 3;
z- = 3;
default: ++x;
++y;
++z;
}
System.out.println( “x =”+x+”y=”+y+”z=”+z) ;
Answers
Answered by
0
Answer:
Do it by your own Shruti I know you can do it
Explanation:
School's work must be done by you
Try your own
Don't just depend upon us
First Try it by Yourself
Similar questions