Question: Write a C program named lab4.c that sorts the following array of strings based on alphabetical order: char names[][16] = { Mike, Timothy, Katie, Anna,

Write a C program named lab4.c" that sorts the following array of strings based on alphabetical order: char names[][16] = { "Mike", "Timothy", "Katie", "Anna", "Jennifer", "Barbara" }; Your program must implement the sort algorithm within a custom-defined function named sort_string() with the following signature and return type: void sort_string(char names[][16], int rows); This function must call functions strcmp() and strcpy() from the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
