C++ Prefix/Postfix Increment & Decrement

We typically use these operators when we want to increment by 1 (or) decrement by 1.

Regular Increment / Decrement

Postfix Increment/Decrement

In postfix operation, the value is retrieved first, before performing either increment or decrement operation.

Prefix Increment/Decrement

In prefix operation, the operation is performed first.

Additional notes :