Skip to content

Instantly share code, notes, and snippets.

@yifu
Created September 21, 2012 15:32
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 yifu/3762201 to your computer and use it in GitHub Desktop.
Save yifu/3762201 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