fork download
  1. #include <iostream>
  2.  
  3. void f(float a)
  4. {
  5. std::cout << "float\n";
  6. }
  7.  
  8. void f(double a)
  9. {
  10. std::cout << "double\n";
  11. }
  12.  
  13. void f(int a)
  14. {
  15. std::cout << "int\n";
  16. }
  17.  
  18.  
  19.  
  20. int main() {
  21. f(0);
  22. f(0.f);
  23. f(0.0);
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
int
float
double