+ 3
Code confusion
One of the challenge questions in Java is this. int a=4; int b=1; int c=++a + --b; System.out.print(c>a?1:0); It outputs as zero (0) and I have no idea why. If I do c>a I get false as output and any other variation gives me errors. can someone help explain all that is going on in the System.out.print()? Thank you.
1 Respuesta