关于文件打开的小问题,希望哪位懂的解释一下
#include<stdio.h>#include<stdlib.h>
void main()
{FILE *fp;
FILE f[5];
fp=f;
fp=fopen("bookt.txt","w+");
fputc('d',fp);
fclose(fp);
fp+1=fopen("bookg.txt","w+");
fputc('k',fp+1);
fclose(fp+1);
}
//fp+1能否打开
int a[10]; int *p; p = a; p+1 = 4;
#include<stdio.h> #include<stdlib.h> void main() { FILE **fp; FILE *f[5]; fp = f; *fp=fopen("bookt.txt","w+"); fputc('d', *fp); fclose(*fp); *(fp+1)=fopen("bookg.txt","w+"); fputc('k',*(fp+1)); fclose(*(fp+1)); }