若输入I have a test.#,则以下程序的运行结果为______。 #include<stdio.h> main() FILE*fp; char str[100],filename[10]; int i=0; if ((fp=fopen("test","w"))==NULL) printf("can not open the file!\n"); exit(0);
getchar(); gets(str); while(str[i]!=’#’) if (str[i]>=’a’ && str[i]<=’z’) str[i]=str[i]-32; fputc(str[i],fp); i++;