/* LAB11.C: shell for string and character data experimentation */ #include #include /* contains C string processing functions */ #include /* contains C character processing functions */ /* Type function "getinitial" here */ /* Main function prototype */ int main(void) { /* Declarations */ char name1[11], name2[11], str1[11], initial; int ch; /* Statements */ printf("\nBegin Output for LAB11.C\n"); printf("Enter first name, middle initial, last name >\n"); scanf("%s%c%s", name1, &initial, name2); printf("Your name, printed last name first, is \n"); printf("%s, %s %c\n", name2, name1, initial); /* Enter statements from Step 4 of Exercise 1 at this point */ printf("Termination of LAB11.C"); return(0); }