194k views
3 votes
write an expression taht evaluated to true if and only if the variable s does not contain the string 'end'

User Naveen T P
by
7.1k points

1 Answer

3 votes

Answer:

//check which string is greater

if(strcmp(name1,name2)>0)

//assign name1 to first, if the

//name1 is greater than name2

first=name1;

else

//assign name2 to first, if the

//name2 is greater than name1

first=name2;

5)

//compare name1 and name2

if(strcmp(name1,name2)>0)

//compare name1 and name3

if(strcmp(name1,name3)>0)

//assign name1 to max, becuase

//name1 is greater than name2 and name3

max=name1;

Step-by-step explanation:

User BGPHiJACK
by
6.9k points