0

So...unless the post and pre increment operators used are assigned to a seperate variable they are same?

5th Jan 2018, 11:34 AM
Harshini Panuganti
4 odpowiedzi
+ 5
No? It's not really clear as to what you are confused about, for now. https://www.sololearn.com/Discuss/407846/?ref=app
5th Jan 2018, 11:40 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
the lines ++a; a++; are the same the difference is only when it is a part of an operation
5th Jan 2018, 11:40 AM
michal
+ 1
when the whole line is only ++a; or a++; it does the same when you have y=x++, first is value of x assigned to y, then is x incremented when you have y=++x, first is x incremented, then value is assigned
5th Jan 2018, 11:45 AM
michal
0
ok i am clear now..thank you!
5th Jan 2018, 11:46 AM
Harshini Panuganti