Question: C programming array question The following functions deal with arrays of characters. I chose characters because I know you've had a lot of experience with
The following functions deal with arrays of characters. I chose characters because I know you've had a lot of experience with integer arrays and it's time for a change. 3. For each of the functions below, place a one-line prototype in the header file Print a character array. Write a function called printCharArray that will print the elements of a char array, 10 per line. The values should be separated by one space. 1) an array of characters 2) the size of the array (an integer) Move letters to the front of a char array. Write a function named moveLetters that moves the letters toward the front of the array and moves everything else toward the back. The respective order of the letters is not changed. (See illustration below.) Note: this is not "sorting" the array. The parameters to the function are: 1) an array of characters 2) the size of the array (an integer) DO NOT make additional arrays. If you do, youll receive a grade of zero for this function. Example Array before: Array after 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
