Question: e.g.: /* Read a character string and display one word each line */ #include < stdio.h > void main() { char line[81], * pline ;

e.g.: /* Read a character string and display one word each line */

#include <stdio.h>

void main()

{ char line[81], *pline ;

printf( Enter a string of characters :);

gets(line);

for (pline=line; *pline == , pline++); // Skips blanks.

while (pline !=\0)

{ printf( );

for ( ; ((pline !=\0) and ( *pline!= ); pline++)

printf(%c,*pline) ; // display letters

for ( ; ((pline !=\0) and ( *pline== ); pline++) ; // skips blanks

}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!