Question: Question 2 6 ( 5 points ) Complete the following function which should return the index of the search value in myArray. If the search

Question 26(5 points)
Complete the following function which should return the index of the search value in myArray. If the search value is not found it should return the length as an indication of this. If the length passed in is negative then the search should start from the end of the array as opposed to the beginning. Start with the function header provided and fill in your answer - please provide your answer as syntactically correct as possible.
example CheckArr({2,2,3,3,5,1,2},7,1 returns 5
example CheckArr({2,2,3,3,5,1,2},4,1) returns 4 since it could not find it within the length given
example CheckArr ({1,2,4,1,3},-5,1) returns 3
int CheckArr(int[] myArray, int length, int search)
Paragraph
B
I
U
 Question 26(5 points) Complete the following function which should return the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!