template <class T> T max (T a, T b) { if a<b return b; return a; }
max( 'a' , 3 )
max<char>( 'a' , char(3))
max<int>( int( 'a' ) , 3)
max<char>( int( 'a' ) , 3)
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment