#include <iostream> // handles input and ouput statements
usingnamespace std;
void f(int x);
void f(double x); // function prototypes
int main() {
int i = 10;
double d = 10.1;
short s = 99;
float r = 11.5;
f(i); // calls f(int)
f(d); // calls f(double)
f(s); // automatic type conversion function overload
f(r); // type conversion
cin.get(); // waits till the user presses enter
// before closing the program
return 0;
}
void f(int x) {
cout << "Inside f(int):" << x << "\n";
}
void f(double x) {
cout << "Inside f(double):" << x << "\n";
}