fork(28) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(int) { cout << "f(int)" << endl; }
  5. void f(char*) { cout << "f(char*)" << endl; }
  6.  
  7. int main()
  8. {
  9. char* s = NULL;
  10. f(s); // f(char*)
  11. f(NULL); // f(int)
  12. f(nullptr); // f(char*)
  13. return 0;
  14. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
f(char*)
f(int)
f(char*)