New course! Every coder should learn Generative AI!
Try a free lesson0
Can someone pls enlighten me on post increment and pre increment operators.
1 Answer
+ 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🤟🤟