Question: #4 written in C language. #include #define IN 1 #define OUT 0 2 int main) 13 int c, nl, nw, nc, state; State OUT; while

#4 written in C language.  #4 written in C language. #include #define IN 1 #define OUT

#include #define IN 1 #define OUT 0 2 int main) 13 int c, nl, nw, nc, state; State OUT; while ((c = getchar()) != EOF) { 15 16 18 ++nc if (c == 19 , ') ++n1; 21 state = OUT else if (stateOUT) 24 state IN ; ++nw 28 ("%d 0; %d %d ", nc); printf return nl, nw , 31 . What do the programs do? In program 6, what is the variable state used for? 4. Based on the previous programs, write a program that prints its input one word per line

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!