La operaciĆ³n | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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