Question: reference: Single-Dimensional Arrays and C-Strings solve using c++ attaching 6.42 question as reference solve first question using c++ (Display longest string) Rewrite the longest function

reference:

Single-Dimensional Arrays and C-Strings solve using c++
attaching 6.42 question as reference
solve first question using c++
(Display longest string) Rewrite the longest function in Programming Exercise 6.42 to find the longest amongst the two strings using C-strings with the following header: string longest(const char s1[], const char s2[], char longestString []) Write a test program that prompts the user to enter two C-strings and displays the longest one. For example, if two strings are We1come and Programming, the output is Programming. 42 (Display longest string) Write the longest function using the following function header to return the longest string among two strings: string longest(const string\& s1, const string\& s2) Write a test program that prompts the user to enter two strings and displays the longest string if the input is valid. For example, if two strings are Welcome and Programming, output is Programming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
