When incrementing an integer value
n++ is more efficient if you only add one to a variable
But n=n+1 is more efficient if you add a value that is greater than 1
(e.g. n=n+4, n=n+5)
PS: it would be more efficient if the language you are using has this:
n += 4, n+= 5
On theory basis n+=1 is more efficient than n++ as n+=1 does not generate a temporary, where as n++ does generate a temporary.
But modern compilers can do wonders and n++ could be more efficient as their is nothing blocking in it. With n+=1 the next n+=1 cannot be completed till first n+=1 is complete, so it is sort of blocking.
With single operation it is difficult to tell.
According to 'c' and 'c++' pre and post decrement or increment operator is good because it feels handy with program
Many languages does not support 'n++' type of format like python..,we have to take care about them🙂