differenciate between prefix and postfix increment operators
Answers
Answered by
4
Answer:
Postfix increment operator means the expression is evaluated first using the original value of the variable and then the variable is incremented(increased). ... Prefix decrement operator means the variable is decremented first and then the expression is evaluated using the new value of the variable
Answered by
0
Answer:
prefix operator are operators used to increase or decrease the value of variable first and then executing it Example --->++a ,--a .
Postfix operator is used to execute value first then increase or decrease it.
Example---> a++, a--
Explanation:
Prefix and postfix operator can be subdivided as
1) Increament operator
2)decrement operator
Similar questions