0

What is the output of the following code? int x = 14; System.out.println(x++);

answer 15, but it shows wrong

8th Aug 2022, 4:17 PM
DR.VENGATESAN.G COMMERCE-CA
DR.VENGATESAN.G COMMERCE-CA - avatar
3 Answers
+ 1
DR.VENGATESAN.G COMMERCE-CA if you were expecting 15, then it is time to review the lesson on prefix and postfix before that quiz question. Also read the Comments where you will find expanded explanations.
8th Aug 2022, 11:18 PM
Brian
Brian - avatar
+ 1
Please use relevant tsgs for the post. At least put Java in tags for context clarity. https://code.sololearn.com/W3uiji9X28C1/?ref=app
9th Aug 2022, 1:10 AM
Ipang