• 2022-06-06
    以只读方式打开一个已有的文本文件file1.txt,下面有关fopen函数正确的调用方式为________。
    A: FILE *fp;fp=fopen("file1.txt","w");
    B: FILE *fp;fp=fopen("file1.txt","r");
    C: FILE *fp;fp=fopen("file1.txt","r+");
    D: FILE *fp;fp=fopen("file1.txt","rb+");
  • 举一反三