Can someone pls enlighten me on post increment and pre increment operators. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Can someone pls enlighten me on post increment and pre increment operators.

29th May 2020, 4:56 AM
Victor Emmanuel
Victor Emmanuel - avatar
1 Resposta
+ 3
The main point is thatĀ ++aĀ increments the value and immediately returns it. a++Ā also increments the value (in the background) but returns unchanged value of the variable - what looks like it is executed later. Hope you understand the concept. Rock the codešŸ¤ŸšŸ¤Ÿ
29th May 2020, 5:01 AM
Piyush
Piyush - avatar