Increment and Decrement Operators

Increment and Decrement Operators

Increment operators are used to increase the value of the variable by one and decrement operators are used to decrease the value of the variable by one in C programs.

Type of Increment Operator
  • Pre increment/decrement Operator (++a, --a)
  • Post increment/decrement Operator (a++, a--)
In pre increment / decrement first increment/decrement the value of variable and then used inside the expression (initialize into another variable)
In post-increment / decrement first value of variable is used in the expression (initialize into another variable) and then increment / decrement the value of variable.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz