Question: Given the function below, which of the following are needed to change the function into a function template? int smallest( int array[], int size) {
Given the function below, which of the following are needed to change the function into a function template?
int smallest( int array[], int size) { int small=0, i; for(i=0;i A. the data type must be numeric B. the data type must be character based. C. the data type must be an integer D. the data type must have a < (less than) operator defined for it in order process the selective if statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
