Skip to content

Instantly share code, notes, and snippets.

@bennetthardwick
Created December 19, 2017 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennetthardwick/37d1eb6f6585efb8e623941991a04cc8 to your computer and use it in GitHub Desktop.
Save bennetthardwick/37d1eb6f6585efb8e623941991a04cc8 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int a = 0;
int increment(){
return ++a;
}
int main(){
printf("%d and %d\n", 1, 2);
printf("%d and %d\n", increment(), increment());
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment