1.

What is the output of this program?
#include <iostream>
using namespace std;
template <class type>
class Example
{
public:
Example();
~Example();
type Data(type);
};
template <class type>
type Example<type>::Data(type Value0)
{
return Value0;
}
template <class type>
Example<type>::Example()
{
}
template <class type>
Example<type>::~Example()
{
}
int main(void)
{
Example<char> Value1;
cout << Value1.Data('L') << endl;
return 0;
}

A. Compilation Error
B. Runtime Error
C. Garbage Value
D. L
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs