|
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);
}
~
~
~
|