/* * arraystr6a.c */ #include int main(void) { int ii; /* the number of elements (strings) in array is 5 * the number of elements in each string is 10 */ char fname[5][10]; for(ii=0; ii<5; ii++) { printf("You will be asked for the first names of five classmages.\n"); printf("Please enter the first name of classmake:\n %d ", ii+1); scanf("%s", fname[ii]); } printf("\nMy classmakes: "); for(ii=0; ii<5; ii++) { printf("%s/",fname[ii]); } printf("\n"); return 0; }