like this i get an error too
"Remember, a variable name can only contain letters, numbers and the underscore."
but i get
.c(42) : error C2065: 'c' : undeclared identifier
1>c:\documents and settings\\my documents\visual studio 2005\projects\ex6\ex6\ex6.c(42) : error C2057: expected constant expression
1>c:\documents and settings\\my documents\visual studio 2005\projects\ex6\ex6\ex6.c(42) : error C2466: cannot allocate an array of constant size 0
1>c:\documents and settings\\my documents\visual studio 2005\projects\ex6\ex6\ex6.c(42) : error C2086: 'char **f' : redefinition
1> c:\documents and settings\\my documents\visual studio 2005\projects\ex6\ex6\ex6.c(42) : see declaration of 'f'
Code:
int smallest(char* f[a],char* f[b],char* f[c])
{
int i=1;
char* pLowest = f[a];
if(strcmp(pLowest, f[b]) > 0)
i=2;
pLowest = f[b];
if(strcmp(pLowest, f[c]) > 0)
pLowest = f[c];
i=3;
return i;
}