Kursy
Zaloguj sięZacznij uczyć się AI
Kursy
Zaloguj sięZacznij uczyć się AI
+ 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

javavariable++xx++instruction
1st Oct 2017, 3:24 PM
Stefko Yoshovski
Stefko Yoshovski - avatar
2 odpowiedzi
+ 14
No difference between Java and C++ version! [https://www.sololearn.com/Discuss/160327/what-is-the-difference-between-x-x-x-and-x] [https://www.sololearn.com/Discuss/336732/what-is-the-difference-between-x-and-x] [https://www.sololearn.com/Discuss/305422/x-and-x] [https://www.sololearn.com/Discuss/56740/what-is-the-difference-between-x-and-x]
1st Oct 2017, 3:32 PM
Babak
Babak - avatar
+ 1
thank you very much
1st Oct 2017, 3:33 PM
Stefko Yoshovski
Stefko Yoshovski - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
4 Votes
Python intermediate help with dictionaries
0 Votes
Marquee
1 Votes
I'm about to make a complex calculator in python
0 Votes
Any Advise?
1 Votes
RUST'S FUTURE
1 Votes
Popsacles Aufgabe
1 Votes
How far do courses go on Sololearn?
0 Votes
Button In C++
1 Votes
Question #2: "Please activate your account and keep learning to enable messaging. An email has been sent to you"
1 Votes