Question: Solve in C++ Write a function printArray which takes an array of integers and its size and prints it out Write a function printArray which
Solve in C++
Write a function printArray which takes an array of integers and its size and prints it out
Write a function printArray which takes an array of strings and its size and prints it out
Write a function appendString which takes an array of strings, its size and a string to append to the end of the array.
Write a main method that:
a.Creates an array called numbers with {10, 20, 30, 40, 50}
b.Creates an array called children with {Mary, Brett, Donna}
c.Call printArray with array numbers
d.Calls appendString on array children and string Max. The array contents should be modified to {Mary Max, Brett Max, Donna Max} in appendString
e.Call printArray with array children
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
