What is the process to create increment and decrement statement in C?
- The increment(++) and decrement operators(–) are important unary operators in C. Unary operators are those which are applied on a single operand.
- The increment operator increases the value of the variable by one and the decrement operator decreases the value of the variable by one.
Step 1 : In this program, value of i “0” is compared with 5 in while expression.
Step 2 : Then, value of “i” is incremented from 0 to 1 using post-increment operator.
Step 3 : Then, this incremented value “1” is assigned to the variable “i”.
The increment(++) and decrement operators(–) are important unary operators in C. Unary operators are those which are applied on a single operand. The increment operator increases the value of the variable by one and the decrement operator decreases the value of the variable by one.
The value of the variable is increased by the increment operator by one, whereas the value is decreased by the decrement operator by one.
By combining the ++ increment and -++ decrement operators. For instance, the command “i+=” increases the value of x by one. For instance, the word “x-” implies to reduce the value of x by 1.
We can do this in two different ways.
1) By using the increment operator ++ and the decrement operator. for example, the statement “i+=” means to increment the value of x by 1. Like, The statement “x-” means to decrement the value of x by 1

We can do this in two different ways. 1) By using the increment operator ++ and the decrement operator. for example, the statement “i+=” means to increment the value of x by 1. Like, The statement “x-” means to decrement the value of x by 1.