Skip to content

Instantly share code, notes, and snippets.

@Keith-S-Thompson
Created April 7, 2014 21:40
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 Keith-S-Thompson/10063239 to your computer and use it in GitHub Desktop.
Save Keith-S-Thompson/10063239 to your computer and use it in GitHub Desktop.
/*
* In response to http://stackoverflow.com/a/22918463/827263
* "In C you can't declare variables/functions (in same scope) with the same name more than once."
*/
#include <stdio.h>
void yes_you_can(void);
void yes_you_can(void);
void yes_you_can(void);
void yes_you_can(void) {
puts("Yes, you can");
}
int main(void) {
yes_you_can();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment