Question
What is the output of this program?
#include < iostream >#include < string >using namespace std;template < typename T >void print_mydata(T output){coutAnswer: Option A
Was this answer helpful ?
In this program, We are passing the value to the template and printing it in the template.
Was this answer helpful ?
More Questions on This Topic :
Question 1. How to declare a template? ....
Question 3. Which are done by compiler for templates? ....
Question 6. What is a function template? ....
Question 10. What is meant by template specialization? ....
Submit Solution