Skip to content

Instantly share code, notes, and snippets.

@yifu
Created September 21, 2012 15:32
Show Gist options
  • Save yifu/3762200 to your computer and use it in GitHub Desktop.
Save yifu/3762200 to your computer and use it in GitHub Desktop.
#include <iostream>
void f(int) { std::cout << "f(int)" << std::endl; }
void f(char *) { std::cout << "f(char *)" << std::endl; }
int main()
{
std::cout << "hello world" << std::endl;
f(0);
f((char*)0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment