Explain the difference between ++u and u++?
S.no | ++u | u++ |
---|---|---|
1. | Called prefix increment. | Called postfix increment |
2. | Increment happens on the variable first. | Increment happens after variable’s value is used. |
BY Best Interview Question ON 06 Feb 2019