Examlex

Solved

In the Following Function Template, What Must Be True in Order

question 34

Multiple Choice

In the following function template, what must be true in order to use the function with a given data type?
Template <class T>
Int smallest T array[], int size)
{
Int small=0, i;
Fori=0;i<size;i++)
{
Ifarray[i] < array[small])
Small=i;
}
Return small;
}


Definitions:

Related Questions