Friday, April 26, 2024 02:26

Posts Tagged ‘decrementing operator’

Decrementing operator

Friday, January 6th, 2017

Decrementing operator is the complementary part of the incrementing operator. What applies to the incrementing operator, also applies for the decrementing one.

Obviously, the difference is in the syntax and behavior. Decrementing operator can be expressed in four ways, just like incrementing one:

The difference in behavior should be obvious and self-explanatory: instead of adding, we subtract.… Read more


Follow the white rabbit