in Technology by (1.8m points)

What is the difference between ++a and a++?

1 Answer

0 votes
by (1.8m points)

‘++a”  is called prefixed increment and the increment will happen first on a variable. ‘a++’ is called postfix increment and the increment happens after the value of a variable used for the operations.

Related questions

0 votes
asked Jan 21, 2021 in Technology by JackTerrance (1.8m points)