0 votes
in C Plus Plus by

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

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 Jun 15, 2020 in C Plus Plus by Robindeniel
0 votes
asked Jan 11 in C Plus Plus by GeorgeBell
...