• 2022-05-27
    假设fp为FILE* 指针变量,如下代码执行后, char *s1="China",*s2="Beijing"; FILE *fp=NULL; fp=fopen("abc.dat","wb"); fwrite(s2,7,1,fp); rewind(fp); fwrite(s1,5,1,fp); fclose(fp);文件abc.dat的内容是
    A: Chinang
    B: China
    C: ChinaBeijing
    D: BeijingChina
  • 举一反三