Solved

If We Want a Search Function to Search an Array

Question 24

Multiple Choice

If we want a search function to search an array for some value and return either the index where the value was found, or -1 if not found, which of the following prototypes would be appropriate?


A) void searchconst int array, int target, int numElements) ;
B) void searchconst int array, int target) ;
C) int searchconst int array[], int numElements) ;
D) int searchconst int array[], int target, int numElements) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents