Difference between a++ and ++a in java
Answers
Answered by
2
Answer:
The only difference is the order of operations between the increment of the variable and the value the operator returns. So basically ++i returns the value after it is incremented, while ++i return the value before it is incremented.
HOPE IT HELPS ! MARK ME AS BRAINLIEST !
Answered by
0
Answer:
a++ and ++a
Explanation:
in a++ there first intialization then increment and in ++a there first increment then intialization
Similar questions