Answer:Consider the following code segment:
template <class temp>
void sample(temp &x)
{
…….//code
};
Which of the following is true about the above code?
Options
I. Declares a sample() class template that receives the given data type for a single value and returns no value
II. Declares a temp function template that receives the given data type for a single value
III. Declares a sample() function template that receives a value of given data type and returns no value
IV. None of the above
Answer : c) Declares a sample() function template that receives a value of given data type and returns no value