Question: C programming #include The first part of this lab is to write a program, word.c, which rea file, getty.txt, and displays each word on a
C programming #include




The first part of this lab is to write a program, word.c, which rea file, getty.txt, and displays each word on a line by itself. A wordma any sequence of characters separated by a blank, a tab, or a newine this definition for a word considers punctuation as part of the word. Part I You may use the following while loop which will read the next word from the fila into a word buffer, wbuf, which is declared in main ) as a character array while (!feof (fp)) fscanf (fp, "%s", wbuf) ; As each word is returned in the wbuf parameter, it is then sent to an output function, output (), which displays the contents of wbuf to standard output with a plus (+) sign both preceding and following the word: +Four+ +score+ +and+ +seven+ +years+ +agot tourt +fatherst +brought+ tforth, + Note that the comma is considered part of the word The plus signs should not be stored within wbuf, but should be output ju and just after the contents of wbuf are output. Your output file for this part of the lab should be called csisl.txe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
