Skip to content

Instantly share code, notes, and snippets.

@navinthenapster
Created October 11, 2021 17:13
Show Gist options
  • Save navinthenapster/318db86ef1d590af9bccb6b12c1ece5e to your computer and use it in GitHub Desktop.
Save navinthenapster/318db86ef1d590af9bccb6b12c1ece5e to your computer and use it in GitHub Desktop.
pre_increment and post increment operation
++a * ++a = (a+2)^2
++a * a++ = (a+1)(a+2)
a++ * ++a = (a)(a+2)
a++ * a++ = (a)(a+1)
# credited karthikraja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment