fork download
  1. #include <stdio.h>
  2.  
  3. void print(int i) {printf("%d\n", i);}
  4. void print(double d) {printf("%f\n", d);}
  5.  
  6. int main()
  7. {
  8. int j=5;
  9. double f=7.7;
  10.  
  11. print(j);
  12. print(f);
  13. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
5
7.700000