warning in c about comparision between pointer and interger
hai!
i got a warning saying that comparision between pointer and interger #include<stdio.h> #include<string.h> main() { char s[80]; int i,j,count=0; printf("enter the string"); scanf("%s",s); for(s[i]=0;s[i]<=strlen(s);s[i++]) { if(s[i]=="\n"||s[i]==" "||s[i]=='\t') count++; } printf("%d",count); } ~ ~ ~ |
Um, that's cool. Did you have a question?
|
And even if you don't, I have a question, what the???
Code:
for(s[i]=0;s[i]<=strlen(s);s[i++]) |
All times are GMT -5. The time now is 01:12 PM. |