The increment/decrement operators in C

 

  • The increment operator (++ and the decrement operator (--)in C and in Java are identical in notation and meaning:

      operation  | Meaning
    -------------+---------------------------------------------------------
        x++      | Post increment. Increments x and returns old value of x
        x--      | Post decrement. Decrements x and returns old value of x
                 |
        ++x      | Pre increment.  Increments x and returns new value of x
        --x      | Pre decrement.  Decrements x and returns new value of x