Find out the correct statement about the program?
#includestdio.h

int main()
{
FILE *fp;
char str[11], ch;
int i=0;
fp = fopen("TXT.INPUT", "r");
while((ch=getc(fp))!=EOF)
{
if(ch == '\n' || ch == ' ')
{
str[i]='\0';
strrev(str);
printf("%s", str);
i=0;
}
else
str[i++]=ch;
}
fclose(fp);
return 0;
}

Posted on by