Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code? #include<iostream> #include<stdlib.h> using namespace std; template<class T, class U, class V=double> class A { T x; U y; V z; }; int main() { A<int, int> a; A<double, double> b; cout << sizeof(a) << endl; cout << sizeof(b) << endl; return 0; }

Select the correct option to test your answer:

More Computer Questions

Which among following is not associated with spelling dialogue box? If an XML document does not have a DTD, then by definition it is: Which of the following is not the algorithm to find the minimum spanning tree of the given graph? In R, which package provides functions for creating and modifying interactive 3D plots? Which sorting algorithm is best for sorting strings of fixed length?