Question
1.
#include
2.
#include
3.
#include
4.
using namespace std;
5.
template
6.
type MyMax(const type Var1, const type Var2)
7.
{
8.
cout
What is the output of this program?
1.
#include
2.
#include
3.
#include
4.
using namespace std;
5.
template
6.
type MyMax(const type Var1, const type Var2)
7.
{
8.
cout
Answer: Option A
Was this answer helpful ?
In this program, We are computing the result in the specalized block of the program.
Output:
$ g++ spec3.cpp
$ a.out
template
Was this answer helpful ?
More Questions on This Topic :
Question 5.
What is meant by template specialization?
....
Submit Solution