La operación | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

La operación

Int x 14; System.out.print(x++); Result = 14

22nd Aug 2020, 7:47 PM
Javier Arturo Carvajal Coronado
Javier Arturo Carvajal Coronado - avatar
1 Answer
+ 11
x++ is post incrementing so the doesn't increments the value at first It initializes it. So the answer will me 14 itslef. If it had been ++x than the answer is 15
22nd Aug 2020, 8:18 PM
Nilesh