有以下程序(提示:程序中fseek(fp,-2L*sizeof(int),SEEK_

题型:单项选择题

问题:

有以下程序(提示:程序中fseek(fp,-2L*sizeof(int),SEEK_END);语句的作用是使位置指针从文件尾向前移    2*sizeof(int)字节)  #include <stdio.h>  main( )  { FILE *fp; int i,a[4]={1,2,3,4},b;   fp=fopen("data.dat","wb");   for(i=0;i<4;i++) fwrite(&a[i],sizeof(int),1,fp);   fclose(fp);   fp=fopen("data.dat","rb");   fseek(fp,-2L*sizeof(int).SEEK_END);   fread(&b,sizeof(int),1,fp);/*从文件中读取sizeof(int)字节的数据到变量b中*/   fclose(fp);   printf("%d\n",b);}  执行后输出结果是( )

A.2

B.1

C.4

D.3

考点:计算机等级考试C语言全国计算机等级考试二级C语言真题2004年4月
题型:单项选择题

睫状体充血时血液来源于()

A.睫状后长动脉

B.睫状后短动脉

C.睫状前动脉

D.睑外侧动脉

E.虹膜动脉大环

题型:单项选择题

Ⅰ                            Ⅱ

小题1:Don’t run in the hallway.                    A. They’re delicious, thanks.

小题2: How about the apples?                      B. It was cloudy.

小题3:What did Sam do last Sunday?                C. I’m sorry, Ms Cao.

小题4: What does he think of the game show?         D. He played tennis with his friends.

小题5:What was the weather like yesterday?          E. He doesn’t mind it.

题型:单项选择题

为准确反映项目的社会效果,社会评价指标中的教育、健康、技能开发等属于()。

A.客观指标

B.主观指标

C.社会性指标

D.经济性指标

题型:单项选择题

人格的核心是

A.能力

B.性格

C.智力

D.气质

E.理想

题型:单项选择题

拍发铁路电报只限全路()能够通达的范围内。

更多题库