Computer Science, asked by tppatil009, 1 year ago

difference between increment operator or decrement operator


ggghh76: mark me as brainlliest
ggghh76: please

Answers

Answered by ggghh76
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.



ggghh76: mark me as brainlliest
ggghh76: please
Answered by DakshChauhan
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.

DakshChauhan: mark me as brainlliest
DakshChauhan: mark me
Similar questions