2074 12

CSC115 ยท 2074 ยท 5 marks

Discuss increment and decrement operator with example.

Discuss increment and decrement operator with example. [5]

C ProgrammingChapter 4: Operators and ExpressionIncrement or Decrement operator

C has two useful operators: increment (++) and decrement (--). These are unary operators because they operate on only a single operand. - The increment operator (++) increments the value of a variable by 1. - The decrement operator (--) decrements the value of a variable by 1. --- These operators...