Select functions calls that will cause compilation error for the following code:
tеmрlаtе<сlаss Т> vоid f(Т t1, Т t2);
struсt s{s(int);s();};
The function expects two parameters of the same type. In the case when parameters of different types are passed and the template parameter is not specified explicitly, there is an ambiguity which of the two parameters should be casted to the type of the other parameter.

Follow CodeGalaxy

Mobile Beta

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