R
Q. Which of the following is true about templates? 1) Template is a feature of C++ that allows us to write one code for different data types. 2) We can write one function that can be used for all data types including user defined types. Like sort(), max(), min(), ..etc. 3) We can write one class or struct that can be used for all data types including user defined types. Like Linked List, Stack, Queue,..etc. 4) Template is an example of compile time polymorphism.
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of the following are the components of STL?
Q. By default how the value are passed in c++?
Q. ____ constant is a signed real number.
Q. What should be the output of below program?
Q. What will be the output of the following C++ code?
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x -= y);
Q. Using which of the following keywords can an exception be generated?
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x < y);
Q. Which of the following is the correct way to define a function with a default argument in C++?
Discusssion
Login to discuss.