Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The function takes three parameters: string array, int arraySize, and string word The function will loop through the string array. If word is found in
- The function takes three parameters: string array, int arraySize, and string word
- The function will loop through the string array. If word is found in the array, return the matched elements position (index) in the array. Otherwise, return -1.
- When a match is found in the array, the loop should be terminated at the time --- no need to continue the loop.
- If no match is found, the function should display all elements in the array, as well as the search word.
- Please make sure the function cannot modify any data in the array.
USE C++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started