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. What is the output of below program?
Q. When an ADT is implemented as a C++ class, which of the following should normally be true?
Q. For example class boy, ____ is a user defined data type of class.
Q. What happens if the following program is run in C and C++?
Q. Which STL container stores key-value pairs and provides fast retrieval based on keys?
Q. If the derived class is struct, then default visibility mode is _______ .
Q. Which of the following correctly describes C++ language?
Q. What is the scope of the variable declared in the user defined function?
Q. Where a condition is checked to see whether to do one or more iteration is _____
Discusssion
Login to discuss.