int main() { char name[32]; char lastname[32]; printf("Enter the name: "); gets(name); /* this function is unsafe, compiler may give warning*/ printf("Enter the last name: "); gets(lastname); printf("%s %s\n", lastname, name); /*print last name and first name*/ system("PAUSE"); /*sys delay*/ return 0; }
Comments
Leave a comment