(A)

use strcpy to overwrite the third string of the 2D array with the string CIS15C

strcpy ( words[2], “CIS15C” );

 

 

 

(B)

by assigning the appropriate character to the appropriate place in words:

1.     overwrite the B with C, and

2.     make sure to overwrite the G with the null character, otherwise the resulting string in words[2] will be CIS15CG

 

words[2][5] = ‘C’;

words[2][6] = ‘\0’;

 

 

 

(C)

by using “%s”, we can print one string at a time. 

printf (“%s %s %s”, words[0], words[1], words[2]);

or

for (i = 0; i <= 2; i++)

   printf (“%s “, words[i]);