Question: Modify the read_line function that reads in aline of input skips white space before beginning to store input characters. Also modify the below program reads

Modify the read_line function that reads in aline of input skips white space before beginning to store input characters. Also modify the below program reads in a line of input but stops reading at the first white space character. Please modify both in separate.

Modify the read_line function that reads in aline of input skips white

int read_line (char *str, int n) int ch, 1-0; while ((ch -getchar )) '') while ( (ch = getchar ( ) ) != n' ) if (i n) *strtt ch; return

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!