What are the Increment and Decrement Operators ?

Discussion in 'Assignments and Operators' started by vbraojava, Sep 16, 2008.

  1. vbraojava

    vbraojava New Member

    We have two Operators that will increment or decrement a variable by exactly one.

    There are two Operators, they are :

    1. ++ increment
    2. -- decrement


    Example :

    int a = 10;
    a++; (10 + 1 = 11)
    a--; (10- 1 = 9)
     
  2. anneroberts

    anneroberts Member

    Increment and decrement administrators are unary administrators that include or subtract one from their operand, individually.
     

Share This Page