设名为“test.txt”的文本文件的内容是123ABCxyzDEF。写出下列程序的输出结果。
#include"stdio.h"
main()
{FILE*fp;
charch;
if((fp=fopen("test.txt","r+"))==NULL)
{printf("Filenotopen!\n");exit(O);}
while(!feof(fp))
{ch=fgetc(fp);
if(ch>='0'&&ch<='a')
{fseek(fp,一1L,1);fputc(ch+2,fp);
fseek(fp,0L,1);
}
}
rewind(fp);
while(!feof(fp))printf("%c",fgetc(fp));
fclose(fp);
}
345CDExyzFGH