In C language, Why does n++ execute faster than n=n+1?
n++
n=n+1
(int n=...; n++;) (int n=...; n=n+1;)
Our instructor asked
All those things depends on compiler/processor/compilation directives. So make any assumptions "what is faster in general" is not a good idea.