4. int a=1,b=2,c=3;
switch(p)
case 1: a++;
case 2: ++b;
break;
case 3: C--;
System.out.println(a + "," + b + "," +c);
When, (i) p = 1
(ii) p = 3
Answers
Answered by
35
Answer:
when p=1-
Output=2,3,3
when p=3-
Output=1,2,2
PLZ MARK AS BRAINLIEST
Answered by
8
Answer:
When p=1
Explanation:
A++
A=1+1
A=2
++b
B=1+2
B=3
C=3
Because of break statement it the value of c doesn't change
When, p=3
A=3+1
A=4
B=4
C=3
Similar questions