fork download
  1. #include <iostream>
  2.  
  3.  
  4. void foo ( long) { std::cout << "int\n " ; }
  5.  
  6. void foo ( int* ) { std::cout << "int*\n " ; }
  7.  
  8. void foo ( std::nullptr_t ) { std::cout << "nullptr\n " ; }
  9.  
  10.  
  11. int main() {
  12. foo ( nullptr ) ;
  13. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
nullptr