0 votes
127 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 136 views
0 votes
1 answer 107 views
asked May 14, 2022 in C program by CodeWithHarry (1.7k points)
0 votes
1 answer 101 views
0 votes
1 answer 162 views
asked May 14, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 130 views
0 votes
1 answer 143 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

559 users

...