Question: This is a C language, and only write a loop equivalent to the for loop on line 40, without using && or ||. Thank you

 This is a C language, and only write a loop equivalentto the for loop on line 40, without using && or ||.Thank you in advance. Run Debug Stop Save A submit Language C

This is a C language, and only write a loop equivalent to the for loop on line 40, without using && or ||.

Thank you in advance.

Run Debug Stop Save A submit Language C main.c 9 #include 10 11 #define MAXLINE 1000 12 23 13 int getline2(char line[], int maxline); 14 void copy (char to[], char from[]); 15 16 int main() 17- { 18 int len; 19 int max; 20 char line[MAXLINE]; 21 char longest [MAXLINE]; 22 max=0; 24. while((len = getline2(line, MAXLINE)) > 0){ 25 if(len > max){ 26 max = len; 27 copy(longest, line); 28 } 29 } 30 31 if(max > 0) 32 printf("%s", longest); 33 34 return 0; 35 } mmmmm Run Debug Stop A Save A submit Language main.c 30 31 if(max > 0) 32 printf("%s", longest); 33 34 return 0; 35} 36 37. int getline2(char s[], int lim){ 38 int c, i; 39 40 for (i=0; i

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!