Question: In Ch6, we discussed the predefined Index Of() method of array. We know the method takes two parameters, the whole array and an element to
In Ch6, we discussed the predefined Index Of() method of array. We know the method takes two parameters, the whole array and an element to search. The method returns the index of the element if found, and -1 if not found. Now, you need to write a method of your own, Find Match(), that does exactly the same thing:
1) takes two parameters, the whole array and an element to search
2) returns the index of element if found, and -1 if not found.
3) display the result back from the Main()
Step by Step Solution
3.51 Rating (151 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
