单项选择题
有以下程序:
#include<stdio.h>
main()
FTLE*fp;int a[10]=1,2,3,i,n;
fp=fopen("d1.dat","w";
for(i=0;i<3;i++)fprintf(fp,"%d",a[i]);
fprintf(fp,"\n");
fclose(fp);
fp=fopen("d1.dat","r");
fscanf(fp,"%d",&n);
fclose(fp);
printf("%d\n",n);
程序的运行结果是______。
A.12300
B.123
C.1
D.321
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #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
点击查看答案&解析
单项选择题
程序流程图中有箭头的线段表示的是______。
A.图元关系
B.数据流
C.控制流
D.调用关系
点击查看答案&解析
相关试题
有以下程序: #include<string.h> vo...
若有定义:float x=1.5;int a=1,...
有以下程序: main() char *p[]=...
有以下程序: #include<stdio.h> #i...
有以下程序: #include<string.h> ma...