Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created July 28, 2012 16:33
Show Gist options
  • Save stepancheg/3193924 to your computer and use it in GitHub Desktop.
Save stepancheg/3193924 to your computer and use it in GitHub Desktop.
#include <stdio.h>
struct zzz {
static int bar(long p) {
return 4;
}
static int foo() {
return bar(0);
}
static int bar(int p) {
return 2;
}
};
int main() {
// prints 2
printf("%d\n", zzz::foo());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment