C - Pre-Increment is faster than post-increment

By: IncludeHelp, on 21 JAN 2017

We already know that there are two kinds of unary operators which are used to increase a value by 1. Pre-Increment and Post-Increment.

Pre-increment is faster than post-increment because post increment keeps a copy of previous (existing) value and adds 1 in the existing value while pre-increment is simply adds 1 without keeping the existing value.


Related Tutorials



Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.