Answer:Consider the following code segment:
template <class temp>
class sample
{
……..//code
};
Identify the correct syntax for declaring a dynamic array of characters using the above template.
Options
I. sample <char> characterArray;
II. sample <datatype> characterArray;
III. temp <char> characterArray;
IV. temp <datatype> characterArray;
Answer : a) sample <char> characterArray;