0

Is there any performance difference between i++ and i=i+1 ?

1st Feb 2016, 4:03 AM
Deepak C R
Deepak C R - avatar
5 Answers
+ 1
there isn't a difference
19th Jun 2016, 3:32 AM
AZIZ BASIR
AZIZ BASIR - avatar
+ 1
there is no difference
16th Jul 2016, 5:01 AM
Karan Luther
Karan Luther - avatar
0
x++ and x=x+1 are compiled as the same exact command by the interpreter so no, once you run the program there will be no difference.
28th Feb 2016, 7:42 PM
SuperUser
SuperUser - avatar
0
Nope there is no difference.
13th Jun 2016, 8:12 AM
Shikhar Seth
Shikhar Seth - avatar
0
no difference
26th Jun 2016, 11:59 AM
Mona Abdelnaeem
Mona Abdelnaeem - avatar