La operación | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 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