What exactly is the error and what are you trying to do here? Please be specific.
henryBcFc wrote:
while(str!=NULL) {
if(str>=a&&str<=z)
str=str-32;
fputc(str,fp);
i++;
}
Looks like you want to convert all the input characters to upper case and print it in a file.
You need to use "str[i]" inside the loop instead of "str"