for the first one i got
Code:
max(s1,s2);
{
if (strcmp("s1", "S2")>0)
returns "s1";
else if (strcmp("s1", "S2")>0)
return "s2";
}
however, still not correct.... wondering why?
for the second one :
Code:
if (strcmp(name1, name2)<=0 && strcmp(name1, name3)<=0)
min = name1;
if(strcmp(name2, name1)<=0 && strcmp(name2, name3)<=0)
min = name2;
if (strcmp(name3, name1)<=0 && strcmp(name3, name2)<=0)
min = name3;
...... still not correct!!!
appreciate for the previousi hint.. wish this time i can get it right.