#include<iostream.h>
#include<conio.h>
template <class T>
void display(T v)
{
                cout<<"V = "<<v<<endl;
}
void main()
{
                clrscr();
                int i=50;
                char c='Z';
                double d=3.71;
                display(i);
                display(c);
                display(d);
                getch();
}

208.PNG

Advertisements