Question:Why Pre-increment operator is faster than Post-increment? 

Answer Evaluation of any expression is from left to right. Preincrement is faster because it doesn't need to save the current value for next instruction whereas Postincrement needs to saves current value to be incremented after execution of current instruction. 

+ Report
Total Preview: 1685
Why Pre-increment operator is faster than Post-increment?
Copyright © 2024. Powered by Intellect Software Ltd