#include<iostream.h>
#include<conio.h>
template <class T>
void display(T t)
{
                cout<<"Inside Template Function = "<<t<<endl;
}
void display(int i)
{
                cout<<"Inside Specific Function = "<<i<<endl;
}
void main()
{
                clrscr();
                display('X');
                display(10);
                display('Z');
                display(10.5);
                getch();
}

209.PNG

Advertisements