Register Relation- Why p++ is faster than p+1?

Why p++ is faster than p+1?
Latest Answer: p++ is faster because on compilation, it gets translated to three machine instructions, where as p=p+1 needs four machine instructions. All machine instructions take the same time. For p++, the instructions are: mov ax, inc ax mov, ax For ...

Comments

Join as a footSigns Travel Writer...

Name

Email *

Message *