why??

why n++ executes faster than n+1?




Answer:-
The expression n++ requires a single machine instruction such as "INR" to carry out the increment operation whereas, n+1 requires more instructions to carry out this operation.

Related Posts