Skip to content

Instantly share code, notes, and snippets.

@dtzWill
Last active June 18, 2018 15:31
Show Gist options
  • Save dtzWill/400058be5f6b73193913c608a8b86945 to your computer and use it in GitHub Desktop.
Save dtzWill/400058be5f6b73193913c608a8b86945 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int foo(int x) {
static int i = x;
return i;
}
int main(int argc, char *argv[]) {
printf("foo: %d\n", foo(argc));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment