in Technology by

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

Please log in or register to answer this question.

1 Answer

0 votes
by

‘++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 Feb 9 in Technology by JackTerrance
0 votes
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
asked Jul 27, 2021 in Technology by JackTerrance
...