Sail E0 Webinar
Question

What is the output of this program?

#include < iostream >#include < string >using namespace std;template < typename T >void print_mydata(T output){cout
Options:
A .  5.5 Hello World
B .  5.5
C .  Hello World
D .  none of the mentioned
Answer: Option A


In this program, We are passing the value to the template and printing it in the 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