Question: 4. Answer each of the following programming questions (using C++)__(2+2+6) a) Declare a function called Longest that takes an array X (of type string)

4. Answer each of the following programming questions (using C++)__(2+2+6) a) Declare a function called

4. Answer each of the following programming questions (using C++)__(2+2+6) a) Declare a function called Longest that takes an array X (of type string) and number of data N as input and that returns the longest string (output type is a string). b) Given a function declaration as below: void Mystery(char X[ ], int m, int n); Where m is the starting index and n represent total number of data in the array. Given a character array as below: char vowels[ ] = {a, e', 'I, o, u}; How will you call the function Mystery for the array vowels? Write down the function call only. c) Given the pseudocode for Binary search algorithm as below: Assume A is an array of integer type. The variables m, n and P are all of type integers. BinarySearch ( A, m, n, P) if m

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

For question 4a youre asked to declare a function called Longest which takes an array of strings and ... View full answer

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 Programming Questions!