Given one example each for Increment and decrement operator.
Answers
Answered by
3
Increment "++"
Decrement "--"
Answered by
1
Increment and decrement operators are unary operators that add or subtract one from their operand, respectively. They are commonly implemented in imperative programming languages.
C-like languages feature two versions (pre- and post-) of each operator with slightly different semantics. Additionally, the increment operator is mentioned as ++ and the decrement operator is mentioned as --.
Similar questions