设文件file1.c的内容为COMPUTER。写出下面程序执行后的运行结果。 include<stdio.h> int main() { char ch; FILE *fp; if((fp=fopen("file1.c","r")) ==NULL) { printf("不能打开文件n"); return -1; } while(!feof(fp)) { ch=fgetc(fp); if(ch>='A'&&ch<='Z') fputc(ch+32,stdout); } fclose(fp); return 0; }

时间:2024-07-06 10:15:42

相似题目

推荐题目