Question: int main() { char *names[ 8 ] = { Andy, Bob, Chantalle, Darla, Erika, Fred, Gordon, Heather }; char shortNames[ 8 ][ 4 ]; char

 int main() { char *names[8] = {"Andy", "Bob", "Chantalle", "Darla", "Erika",

int main() { char *names[8] = {"Andy", "Bob", "Chantalle", "Darla", "Erika", "Fred", "Gordon", "Heather"}; char shortNames[8][4]; char list[100]; // INSERT MISSING CODE HERE // for (int i=0; i8; i++) printf("%s ", shortNames[i]); printf(" %s ", list); }

(25% - 11 minutes) Insert the missing code so that it produces the output shown below. You may use string library functions. Your code should be written in a way so that if any of the names are altered in the names array, the output will reflect those changes. And Bob Cha Dar Eri Fre Gor Hea Andy, Bob, Chantalle, Darla, Erika, Fred, Gordon, Heather

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!