in Technology by (1.8m points)

What is the process to create increment and decrement statement in C?

1 Answer

0 votes
by (1.8m points)

There are two possible methods to perform this task.

  • Use increment (++) and decrement (-) operator.

Example When x=4, x++ returns 5 and x- returns 3.

  • Use conventional + or – sign.

Example When x=4, use x+1 to get 5 and x-1 to get 3.

Related questions

0 votes
asked Jan 17, 2021 in Technology by JackTerrance (1.8m points)