fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo(int) { cout << "int\n"; }
  5. void foo(int*) { cout << "int*\n"; }
  6.  
  7. int main() {
  8. foo(NULL); // int
  9. foo(nullptr); // int*
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
int
int*