Firstly i will show an example:
void main(void){
char word[12];
char input[12];
int i;
printf("Input some word: ");
scanf("%s",input);
for(i=0;i<strlen(input);i++)
word[i]=NULL;
if(word[i]==NULL){
printf(" %c ",word[i]);
}
}
As you can see i give to word[i] a NULL value that makes the warning "Warning assignment makes integer from pointer without a cast", then the next warning is in the if "Warning comparison between pointer and integer". So how can i resolve this warnings, exist other options instead of giving the NULL value?