1. Program to implement function overloading.
#include <iostream.h>
#include<conio.h>
void print(int x) {
cout << "Integer: " << x << endl;
}
void print(double x) {
cout << "Double: " << x << endl;
}
void print(char *x) {
cout << "String: " << x << endl;
}
int main() {
int a = 10;
double b = 3.14;
char str[] = "Hello";
print(a);
print(b);
print(str);
getch();
return 0;
}