- 2
Difference between x+=dx and x=x+dx?
Is there any difference between x+=dx and x=x+dx? I am curious if these equations might effect code differently?
4 Answers
+ 3
its the same
+ 3
it will be just fast to write it..if the variable name is toooo long.
+ 1
That's what I thought. Thank you both!
+ 1
it is same but time required to do x+=dx is less because there is no multiple declaration of x