what would be returned by the following two function calls? maximum(2, 5); maximum(2.3, 5.2);

Given the following function template
template
T maximum(T value1, T value2)
{
if (value1 >value2) {
return value1;
}
else {
return value2;
}
}
a. 5 and a type-mismatch error.
b. 5 and 5.2.
c. 2 and 2.3.
d. Two error messages.

b. 5 and 5.2.

Computer Science & Information Technology

You might also like to view...

The Paste option ________ pastes text with all formatting removed

Fill in the blank(s) with correct word

Computer Science & Information Technology

What is the order of the four switch states?

a. Listen, block, learn, and forward b. Block, learn, listen, and forward c. Block, listen, learn, and forward d. Block, listen, forward, and learn

Computer Science & Information Technology