What's the difference between ++x and x++ in java | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

What's the difference between ++x and x++ in java

Hey, I was wondering what is the difference between the instruction x++ and ++x. I know is that x++ is equal to x=x+1 but is ++x the same? thanks

1st Oct 2017, 3:24 PM
Stefko Yoshovski
Stefko Yoshovski - avatar
2 Respuestas