Multiple Choice
Why can you not use the swap template function to swap two complete arrays?
Template <class T>
Void swapT& left, T& right)
{
T tmp=left;
Left=right;
Right=tmp;
}
A) You can not pass an array to a function
B) The swap function does not return anything
C) the = operator does not work for an array
D) tmp should be an integer
Correct Answer:

Verified
Correct Answer:
Verified
Q9: If you need to pass a class
Q10: Given the following function template, which of
Q11: Given a class template named listClass, declare
Q12: You may not have overloaded friend operators
Q13: Given the following template function definition, which
Q15: Given a class template, how many different
Q16: Give the following class template, what changes
Q17: Templates are an example of algorithm abstraction
Q18: In a template, all members must be
Q19: Which of the following are valid template