Question: 9 . [ 1 3 points ] Write a function that takes an array of strings as a parameter and an int specifying the size

9.[13 points] Write a function that takes an array of strings as a parameter and an int specifying the size of the array. It replaces each string in the array with the first half. You MUST use the half method from the previous page. For this question, we will assume your half method works correctly. For example, if the array of strings contains \(\{\) "frog", "cow", "eagle" \(\}\), it will contain \(\{\)"fr","c","ea"\(\}\) after calling your method. void shorten(string words[], int numWords)\{

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!