fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(const char * s) { cout << s << endl; }
  5.  
  6. void f(int i) { cout << "int: " << i << endl; }
  7.  
  8. int main() {
  9. f("Hello");
  10. f(5);
  11.  
  12. }
Success #stdin #stdout 0s 4416KB
stdin
Standard input is empty
stdout
Hello
int: 5