下列使读/写指针不指向文件首的操作是()
A: rewind(fp)
B: fseek(fp,0L,2)
C: fopen("f1.c","r")
D: fseek(fp,0L,0)
A: rewind(fp)
B: fseek(fp,0L,2)
C: fopen("f1.c","r")
D: fseek(fp,0L,0)
举一反三
- 可将文件位置指针指向文件尾部的操作有( )。 A: fseek(fp, 0, 2); B: rewind(fp); fseek(fp, ftell(fp), 2); C: fseek(fp, 0, 1); D: rewind(fp); fseek(fp, ftell(fp), 0);
- 【单选题】如果将文件型指针fp指向的文件内部指针置于文件尾,正确的语句是 A. feof(fp); B. rewind(fp); C. fseek(fp,0L,0); D. fseek(fp,0L,2);
- 可将文件位置指针指向文件开头的操作有( )。 A: fseek(fp, 0, 2); B: fseek(fp, 1, 0); C: fseek(fp, 0, 0); D: rewind(fp);
- 定义FILE*fp,则下列能正确表达将fp置于文件末尾的是:() A: feof(fp) B: rewind(fp) C: fseek(fp,0L,0) D: fseek(fp,0L,2)
- 打开文件,将读写位置指向文件头部的操作是 A: fseek(fp,0L,SEEK_END); B: fseek(fp,0L,SEEK_CUR); C: fseek(fp,0L,SEEK_SET); D: fseek(fp,0L,SEEK_BEGIN);