Sail E0 Webinar
Question


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
Options:
A .  template
B .  class
C .  no specialization
D .  None of the mentioned
Answer: Option A

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers