Computer Science, asked by Ridam6527, 7 months ago

Difference between a++ and ++a in java

Answers

Answered by hareeshk1441
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 aushpurohit69
0

Answer:

a++ and ++a

Explanation:

in a++ there first intialization then increment and in ++a there first increment then intialization

Similar questions