: Following code shows how to achieve this.
#include <iostream.h>
template <class T, class U>
void fun ( T a, U b )
{
cout << a << ” ” << b << endl ;
}
void main( )
{
fun ( 12, 45.5 ) ;
fun ( 12.5, ‘A’ ) ;
}
: Following code shows how to achieve this.
#include <iostream.h>
template <class T, class U>
void fun ( T a, U b )
{
cout << a << ” ” << b << endl ;
}
void main( )
{
fun ( 12, 45.5 ) ;
fun ( 12.5, ‘A’ ) ;
}
Programming Interview Questions And Answers is proudly powered by WordPress. Theme by SwiftThemes.Com in cooperation with Web Host Gear
Powered by Yahoo! Answers