MCQOPTIONS
Saved Bookmarks
| 1. |
#include <iostream>using namespace std;template <typename T>T maximum(T x, T y){ return (x > y)? x : y;}int main(){ cout << maximum(3, 7) << std::endl; cout << maximum(3.0, 7.0) << std::endl; cout << maximum(3, 7.0) << std::endl; return 0;}14.Which of the following statement is correct about the program given below? |
| A. | Compiler Error: There can not be more than one template arguments. |
| B. | 6 12 |
| C. | 8 8 |
| D. | 2 8 |
| Answer» E. | |