Consider the following C code sequence: while (fread(&thing, sizeof(data_t), 1, fp) == 1) { // process item that was read ... } If this code sequence and function call appears in a program, it can be reasonably expected:单项选择题
That thing is an object of type data_t, that fp is a pointer to a FILE object that is open for reading, and that the corresponding file contains exactly one object of type data_t
That thing is an object of type data_t, that fp is a pointer to a FILE object that is open for writing, and that thing is to to be written to the corresponding file
That thing is an object of type data_t, that fp is a pointer to a FILE object that is open for reading, and that the corresponding file contains zero or more objects of type data_t
That thing is an object of type data_t, that fp is a pointer to a FILE object that is open for reading, and that the corresponding file contains one or more objects of type data_t
That data_t is an object of type thing, that fp is a pointer to a FILE object that is open for reading, and that the corresponding file contains exactly one object of type data_t
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!