Q: What is meant by template specialization?
Solution: In the template specialization, it will make the template to be specific for some data types.
Q: Which is similar to template specialization?
Solution: function template overloading is similar to template specialization.
Q: Which is called on allocating the memory for the array of objects?
Solution: When you allocate memory for an array of objects, the default constructor must be called to construct each object. If no default constructor exists, you’re stuck needing a list of pointers to objects.
Q: How many types of specialization are there in c++?
Solution: There are two types of specialization. They are full specialization and partial specialization.
Q: What is another name of full specialization?
Solution: explicit specialization is another name of full specialization.
Q: Which is dependant on template parameter?
Solution: Base class is dependant on template parameter.
Q: Which value is placed in the base class?
Solution: We can place the default type values in a base class and overriding some of them through derivation.
Q: How many bits of memory needed for internal representation of class?
Solution: classes that contain only type members, nonvirtual function members, and static data members do not require memory at run time.
Q: How many kinds of entities are directly parameterized in c++?
Solution: C++ allows us to parameterize directly three kinds of entities through templates: types, constants, and templates.
Q: How many kinds of parameters are there in C++?
Solution: There are three kinds of parameters are there in C++. They are type, non-type, template.
You Have Score    | /10 |