What is the process to create increment and decrement statement in C?
Shathana. S.R. Answered question
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”.
Shathana. S.R. Answered question

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.