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

What will be the output of the following C++ code? #include <iostream> using namespace std; template<typename type> class TestVirt { public: virtual type TestFunct(type Var1) { return Var1 * 2; } }; int main() { TestVirt<int> Var1; cout << Var1.TestFunct(100) << endl; return 0; }

Select the correct option to test your answer:

More Computer Questions

The four types of mail merge main documents are ________ What is the function of Vlookup formula in Excel ? Which data visualization library in R is known for creating static and interactive visualizations for data exploration? What is the datatype for single precision floating point number? Which class is used to separate links in dropdown menu?