Skip to content

Instantly share code, notes, and snippets.

@jeremywrowe
Last active December 19, 2015 02:09
Show Gist options
  • Save jeremywrowe/5881268 to your computer and use it in GitHub Desktop.
Save jeremywrowe/5881268 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char* argv[]) {
int a = 1;
a++;
printf("%d\n", a);
}
# => 2
#include <stdio.h>
int main(int argc, char* argv[]) {
int a = 1;
printf("%d\n", a++);
}
# => 1
#include <stdio.h>
int main(int argc, char* argv[]) {
int a = 1;
printf("%d\n", ++a);
}
# => 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment