hello i have a warning error : passing arg1 of srtcmp makes pointer from integer
without cast.
here is a part of the code :
int calc ( char s[] ) {
int size = strlen(s) ;
int flag = 0 ;
char op ;
char add[] = "+" ;
char sub[] = "-" ;
for ( i=0 ; i<size ; i++ ) {
if ( flag == 0 && (strcmp(s[i],add)==0 || strcmp(s[i],sub)==0 )) {
flag = 1 ;
op = s[i] ;
}
}
help please