In the following function template, what must be true in order to use the function with a given data type?
template
int smallest( T array[], int size)
{
int small=0, i;
for(i=0;i
if(array[i] < array[small])
small=i;
}
return small;
}
a. the data type must be a pre-defined data type
b. the data type must have a < operator defined for it
c. the data type must be numeric
d. the data type must be character based
b. the data type must have a < operator defined for it
You might also like to view...
Which C++ data type was designed to store Unicode characters?
a. char b. long c. wchar_t d. size_t
(A) A field that uniquely identifies each record.The requirement that no record may have a null primary key and that entries for primary keys be unique is called the
(A) Rule of Referential Integrity. (B) Rule of Primary Keys. (C) Rule of Entity Integrity. (D) Rule of Null Values.
Which of the following is a preferred tool for Windows Phone 7 development?
A. Notepad B. Visual Studio 2010 C. IBM Eclipse D. Komodo Edit
The ________ is a pointer option that makes no marks on the slide but is used to emphasize slide content while the presenter speaks
Fill in the blank(s) with correct word