Given the following function definition for a search function, and the following variable declarations, which of the following are appropriate function invocations?
const int SIZE=1000;
int search(const int array[], int target, int numElements);
int array[SIZE], target, numberOfElements;
a. search(array[0], target, numberOfElements);
b. result=search(array[0], target, numberOfElements);
c. result=search(array, target, numberOfElements);
d. result=search(array, target, SIZE);
c. result=search(array, target, numberOfElements);
Computer Science & Information Technology
You might also like to view...
What are the block of statements that are executed in a loop considered to be part of?
A. a loop body B. an iteration block C. the loop header D. the loop block
Computer Science & Information Technology
How many additional action sets (not counting the default set) come with Photoshop?
A. 2 B. 3 C. 9 D. 18
Computer Science & Information Technology