Suppose a template function is defined as follows:

```
template
T maxValue(const T &value1, const T &value2)
{
if (value1 > value2)
return value1;
else
return value2;
}
```
Which of the following statements are correct?

A. cout << maxValue(1.5, 2)
B. cout << maxValue('A', 'B')
C. cout << maxValue(1, 2)
D. cout << maxValue("AB", "AB")
E. cout << maxValue(1.5, 2.5)


B. cout << maxValue('A', 'B')
C. cout << maxValue(1, 2)
D. cout << maxValue("AB", "AB")
E. cout << maxValue(1.5, 2.5)

Computer Science & Information Technology

You might also like to view...

Which of the following events should be used to enable the user to move Alice forward by clicking the up arrow key?

a. Let the mouse move the camera b. Let the arrow keys move c. When a key is typed d. When the world starts e. None of these

Computer Science & Information Technology

Paragraph formatting options - such as line spacing, font, size, and bullets - are typically applied to _____.

A. selected text B. sections C. blocks D. pages

Computer Science & Information Technology

The default summary function for a data fields containing numbers in an Excel PivotTable is:

A) Count. B) Average. C) Max. D) Sum.

Computer Science & Information Technology

The formatted digital record used to store an individual's biometric attributes is called a ____________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology