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",](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f514eda7f89_70966f514ed5977f.jpg)
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
Get step-by-step solutions from verified subject matter experts
