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

Trainee Asked on November 4, 2019 in C Language.
Add Comment
1 Answer(s)

There are two possible methods to perform this task.

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

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

2) Use conventional + or – sign.

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

Reviewer Answered on November 4, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.