Computer Science, asked by sajalsharma2257, 6 months ago

Predict the output of the following code?

int a=1,b=2,c=3;

switch(p)

{

case 1: a=(a++ )+ (++b);

case 2: b=(++b)+(b++);

break;

case 3: c--;

}

System.out.println(a + “,” +b + “,” +c);

When (a) p=1 (b) p=3[2]​

Answers

Answered by sarashah2701
1

Answer:

Not sure so pls search on google for the answer

Explanation:

There u will find it

Similar questions