Solved

Given the Following Function Template

Question 17

Multiple Choice

Given the following function template
Template < class T >
T maximum T value1, T value2 )
{
If value1 > value2 )
Return value1;
Else
Return value2;
}
What would be returned by the following two function calls?
Maximum 2, 5 ) ;
Maximum 2.3, 5.2 ) ;


A) 5 and a type-mismatch error.
B) 5 and 5.2.
C) 2 and 2.3.
D) Two error messages.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions