Computer Science, asked by ffawazahmad666, 4 months ago

what is the output of the following :
int a = 0, b = 20;
a = --b;
System.out.println("a:"+a+"b:"+b);​​

Answers

Answered by kamalrajatjoshi94
0

Answer:

a=0

b=20

a= --b

a=19

But the final value of b is 19 hence

a=19

b=19

Similar questions