How can we construct an increment statement or decrement stmt in c lang and what do they do
Hi,
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.
2) The 2nd way of writing increment statements is to use the conventional + (plus sign) or minus sign. In this case "i++", another way to write it is "i=i+1
Hopefully this information is helpful.
Thank you.