What will be printed to console during the following expression calculation?

int x = 0;
System.out.print(++x==x++);
Explanation
Left side increment will be called before the comparison >>> x = 1
whereas the right side one - after the comparison >>> x = 1.

Please,explain in more detail!

2018 Jun 14, 6:31:28 AM

Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback