A. 一个文件指针,指向待读取的文件
B. 一个整型变量,代表待读取的数据的字节数
C. 一个内存块的首地址,代表读入数据存放的地址
D. 一个内存块的字节数
延伸阅读
你可能感兴趣的试题
int r=8;
printf("%d\n",r>>1);
输出结果是()
A. 16
B. 8
C. 4
D. 2
#include<stdio.h>
struct tt
int x;struct tt*y;*p;
struct tt a[4]=20,a+1,15,a+2,30,a+3,17,a
main()
int i;
p=a;
for(i=1;i<=2;i++)printf("%d",p->x);p=P->y;
程序的运行结果是()。
A. 20,30,
B. 30,17
C. 15,30
D. 20,15
#include<stdio.h>
#include<string.h>
typedef structchar name[9];char sex;float score[2];STU;
STU f(STU a)
STU b="Zhao",'m',85.0,90.0;int i;
strcpy(a.name,b.name);
a.sex=b.sex;
for(i=0;i,2;i++)a.score[i]=b.score[i];
return a;
main()
STU c="Qian",'f',95.0,92.0,d;
d=f(c);printf("%s,%c,%2.0f%2.0f\n",d.name,d.sex,d.score[0],d.score[1]);
程序的运行结果是()。
A. Qian,f,95,92
B. Qian,85,90
C. Zhao,m,85,90
D. Zhao,f,95,92
struct sk
int a;
float b;
data,*p;
若有p=&data,则对data的成员a的正确引用是()。
A. (*p).data.a
B. (*p).a;
C. p->data.a
D. p.data.a
void swapl(int c0[], int c1[])
int t;
t=co[o]; co[o]=o1[o]; c1[o]=t;
void swap2(int * c0, int * c1)
int t;
t=*c0; *c0=*c1; *c1=t;
main()
int a[2]=3, 5, b[2]=A3, 5);
swapl(a, a+1); swap2(&b[0], &b[1]);
printf("%d%d%d%d\n", a[0], a[1], b[0],b[1]);
程序运行后的输出结果是()。
A. 3 5 5 3
B. 5 3 3 5
C. 3 5 3 5
D. 5 3 5 3
A. char s[5]="ABCDE";
B. char s[5]='A','B','C','D','E';
C. char*s;s="ABCDE";
D. char*s; printf("%s",s);
A. p=100;
B. p=a[5];
C. p=a[2]+2;
D. p=a+2;
A. p=2*(int*)malloc(sizeof(int));
B. p=(int*)mallet(2*sizeof(int));
C. p=(int*)malloc(2*2);
D. p=(int*)calloc(2, sizeof(int));
#include <stdio.h>
void fun(char *a, char *B)
while(*a=='*')a++;
while(*b=*A) b++;a++;
main()
char *s="*****a*b****",t[80];
fun(s,t);puts(t);
程序的运行结果是()。
A. *****a*b
B. a*b
C. a*b****
D. ab
#include<stdio.h>
main()
FILE*fp;int i,a[6]=1,2,3,4,5,6;
fp=fopen("d3.dat","w+b");
fwrite(a,sizeof(int),6,fp);
fseek(fp,sizeof(int),3,SEEK_SET);/*该语句使读文件的位置指针从文件头向后移动3个int型数据*/
fread(a,sizeof(int),3,fp);fclose(fp);
for(i=0;<6;++)printf("%d,",a[i]);
程序运行后的输出结果是()
A. 4,5,6,4,5,6,
B. 1,2,3,4,5,6,
C. 4,5,6,1,2,3,
D. 6,5,4,3,2,1,
热门相关试卷
最新相关试卷