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...

Describe an example in which absolute denial of service to a user (that is, the user gets no response from the computer) is a serious problem to that user. Describe another example where 10 percent denial of service to a user (that is, the user’s computation progresses but at a rate 10 percent slower than normal) is a serious problem to that user. Could access by unauthorized people to a computing system result in a 10 percent denial of service to the legitimate users? How?

What will be an ideal response?

Computer Science & Information Technology

The CLR is a(n) ___________ machine. It is software that manages the execution of programs and hides from them the underlying operating system and hardware.

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

Computer Science & Information Technology