Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which of the following is true about code in description? - Select option

  Shared By: Adalrik Fischer    Date: Nov 01    Category: C++ Programming    Views: 794

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

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: