0

wrong question

x++ is not equivalent to x=x+1 because their return value is different. ++x is equivalent

30th Sep 2017, 9:00 AM
Jose M. Moya
Jose M. Moya - avatar
3 Answers
0
But x will be incremented anyway
30th Sep 2017, 9:22 AM
Andrea Simone Costa
Andrea Simone Costa - avatar
0
it doesn't matter which one you choose. it only makes a difference when you assign it to another variable. x=8; b= ++x. //9 b= x++. //8
30th Sep 2017, 9:43 AM
Lord Teacrumble
Lord Teacrumble - avatar