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;
Explanation: