0 votes
116 views
in C program by (98.9k points)
edited

How do you construct an increment statement or decrement statement in C?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
There are actually two ways you can do this. One is to use the increment operator ++ and decrement operator –. For example, the statement “x++” means to increment the value of x by 1. Likewise, the statement “x –” means to decrement the value of x by 1. Another way of writing increment statements is to use the conventional + plus sign or – minus sign. In the case of “x++”, another way to write it is “x = x +1”.

Related questions

0 votes
1 answer 134 views
0 votes
1 answer 105 views
asked May 14, 2022 in C program by CodeWithHarry (1.7k points)
0 votes
1 answer 100 views
0 votes
1 answer 160 views
asked May 14, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 129 views
0 votes
1 answer 142 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

554 users

...