//  File: fover4.C
//
//  Function overloading illustrated

#include <stdio.h>

//  Four functions named foo with different signatures

void foo (int a, int b) {
   printf("int a = %d,  int b = %d\n", a, b) ;
}

void foo (float a, float b) {
   printf("float a = %f float = %f\n", a, b) ;
}


main() {
   int n=1, m=2 ;
   float x=3.1, y=2.4 ;

   foo(n,m) ;
   foo(n,x) ;
   foo(x,n) ;
   foo(x,y) ;
}
