Increment AND Decrement Operators in C

July 20, 2010 1 Comment » Hits : 282





Increment AND Decrement Operators in C
Types :

  • Pre-Increment
  • Post-Increment

Increment/Decrement Operators :
  • Increment & Decrement operators are unary Operators in C .
  • Unary Operators : Operators which require only one Operand
  • Increment Operators   : ++
  • Decrement Operators : –
  • Increment Operator increments the Current value by 1
  • Decrement Operator decrements the Current value by 1

Example :
int a = 5,b=10 a++;b--;
  • Then New value of a = 6
  • Then New value of b = 9

Incoming search terms:

  • Filiberto Baucher

    I am extremely impressed with your writing skills as well as with the layout on your weblog. Either way keep up the excellent quality writing, it is rare to see a nice blog like this one these days..