解: #include <stdio.h>
main()
#define m 20
{
char str1[m];
int i;
FILE *fp1;
if((fp1=fopen(“file2.c”,”r”))==NULL)
{
printf(“cannot open the filen”);
exit(0);
}
i=0;
While(!feof(fp1))
{
strl[i]=fgetc(fp1);
i++;
}
while(i!=0)
{
i–;
Putchar(str1[i]);
}
fclose(fp1);
}