Question: Define two prototype functions. The first prototype is named sort and expects an array of characters and a constant that specifies the length of the




Define two prototype functions. The first prototype is named sort and expects an array of characters and a constant that specifies the length of the array. It retums no value. The second prototype is named search with three parameters: an array of characters, a constant that specifies the length of the array, and a target character to look for. It returns the index where the target character is found in the array. If there are multiple matches, the first index is returned. If no match exists. -1 is returned. Write a main function that declares an array of ten characters. Use a loop to allow the user enter a char for each element. Pass the array to the sort function. The prompt the user to enter a char. Pass the sorted array and the entered char to the search function. Store the returned value in a variable and output it to the console. Warning: Be diligent entering your solution below. Pay special attention to typos. The compiler will be used as the source of truth. You will not receive credit if it does not compile. You must also follow proper formatting and coding standards. Solution #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
