There is a template function
template <class T> T max (T a, T b) 
    if a<b return b;
           return a;
What specialization will the compiler create when invoking max( 'a' , 3 )?
The parameter of the template function cannot be deduced from the arguments of the function template by the types of arguments for its call. It may be either int or char.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes