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

#include <iostream.h>

// Two functions named foo with different signatures

void foo(int a, int& b) {
   cout << "int a = " << a << ", int &b = " << b << "\n" ;
}

void foo(int a, const int& b){
   cout << "int a = " << a << ", const int& b = " << b << "\n" ;
}

main() {
   int x = 3, y = 4 ;

   foo(x, y) ;

   foo(x, 6) ;
}
