4 char *min(char *a, char *b, char *c){
5 if(strcmp(a,b) > 0) && (strcmp(a,c) > 0)
6 return a;
7 else if(strcmp(b,a) > 0) && (strcmp(b,c) > 0)
8 return b;
9 else
10 return c;
11 }
Code won't compile and the irony is i just did the same thing but with 2 variables and it compiled but this one wont here are the errors.
c: In function 'char* min(char*, char*, char*)':
c:5: error: expected identifier before '(' token
c:5: error: expected `;' before '(' token
c:7: error: expected identifier before '(' token
c:7: error: expected `;' before '(' token