求助一道选择题!

wherelose 2010-05-23 01:05:50
若 fp是一个有效的文件指针,则检测fp指在文件头的条件是 ______ .

(A) fp == 0?
(B) ftell(fp) == 0
(C) fseek(fp, 0, SEEK_SET)?
(D) feof(fp)
谁能解释一下个选项的意思?
...全文
309 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
linsqvs10 2010-05-23
  • 打赏
  • 举报
回复
顶7楼的
wherelose 2010-05-23
  • 打赏
  • 举报
回复
谢谢各位!
ww884203 2010-05-23
  • 打赏
  • 举报
回复
唉,又一次失败,CSDN怎么不自己把空格变成 呢?
我自己输入又给我转换一次,我还是用-隔开吧
fseek-----------move to a specific location in a file
ftell-----------returns the current file position indicator
feof------------true if at the end-of-file
ww884203 2010-05-23
  • 打赏
  • 举报
回复 1
选B。
这个是2楼给出的网站的解释
fseek      move to a specific location in a file
ftell      returns the current file position indicator
feof       true if at the end-of-file
ww884203 2010-05-23
  • 打赏
  • 举报
回复
选B。
这个是2楼给出的网站的解释
fseek move to a specific location in a file
ftell returns the current file position indicator
feof true if at the end-of-file
yzx714 2010-05-23
  • 打赏
  • 举报
回复
当然是B,自行man ftell
yidasoft 2010-05-23
  • 打赏
  • 举报
回复
看看C++中对文件操作的部分
mstlq 2010-05-23
  • 打赏
  • 举报
回复
选B

欲知详情,请去下面页面查找对应函数的解释
http://www.cppreference.com/wiki/c/io/start
wade_2003 2010-05-23
  • 打赏
  • 举报
回复
个人觉得选C吧

69,369

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧