1.

#include <iostream>using namespace std;template <class T, class U>class A { T x; U y; static int count;}; int main() { A<char, char> p; A<int, int> q; cout << sizeof(p) << endl; cout << sizeof(q) << endl; return 0;}15.Which of the following is true about the following program

A. Compiler Error: template parameters cannot have default values
B. 12 6
C. 12 3
D. 6 3
Answer» C. 12 3


Discussion

No Comment Found

Related MCQs