# include // // Program 10.5, Stephen Kochan, Programming in C. // int main ( void ); int main ( void ) { // // Note that we can enter three words on one line, or several. // Only blank spaces (and new lines and tabs and things) separate words. // // The program won't stop until it gets three words. // // If a particular word is longer than the space we allocate for it, // trouble will come, because memory will be overwritten! // char s1[81], s2[81], s3[81]; printf ( "Enter test (three words): \n" ); scanf ( "%s%s%s", s1, s2, s3 ); printf ( "\n" ); printf ( "Word 1 is \"%s\"\n", s1 ); printf ( "Word 2 is \"%s\"\n", s2 ); printf ( "Word 3 is \"%s\"\n", s3 ); return 0; }