fork download
  1. #include <iostream>
  2.  
  3. void f(int) {
  4. std::cout << "int" << std::endl;
  5. }
  6.  
  7. void f(long) {
  8. std::cout << "long" << std::endl;
  9. }
  10.  
  11. void f(char) {
  12. std::cout << "char" << std::endl;
  13. }
  14.  
  15. void f(void*) {
  16. std::cout << "void*" << std::endl;
  17. }
  18.  
  19. int main() {
  20. f(0);
  21. f(NULL);
  22. f('\0');
  23. f(nullptr);
  24. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
int
int
char
void*