0
if we use 'num++' instead of 'num = num+1' what hppened
7 Answers
+ 1
it the same thing num++ jst saves your time
+ 1
'++num' is faster :-)
The ++ operators were once introduced to have a increment operator that maps to a single machine instruction. This might not be the case anymore but there's still a difference in non-optimized code. postfix ++ ('num++') and 'num=num+1' require a temporary to be constructed. '++num' doesn't. That's why it's faster.
0
'num++' is faster.
0
ie the fn of both is same
0
both are similar..but code lengh reduced.
0
the same
0
they r both same.its like L.H.S=R.H.S.