difference between increment operator or decrement operator
ggghh76:
mark me as brainlliest
Answers
Answered by
3
Increment and decrement operators are unary operators that add or subtract one, to or from their operand, respectively. They are commonly implemented in imperative programming languages. ... The increment operator increases, and the decrement operator decreases, the value of its operand by 1.
Answered by
1
increment ++ operator increases the value of a variable by 1 and decrement-- operator decreases the value of a variable by 1. Simple enough till now. However, there is a slight but important difference you should know when these two operators are used as prefix and postfix.
Similar questions