单项选择题
已知函数的调用形式为fread(buf,size,count,fp),参数buf的含义是
A.一个整型变量,代表要读入的数据项总数
B.一个文件指针,指向要读的文件
C.一个指针;指向要读入数据的存放地址
D.一个存储区,存放要读的数据项
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
阅读下列程序,当运行函数时,输入asd af aa z67,则输出为 #include <stdio.h> #include <ctype.h> #inelude <string.h> int fun(char *str) int i,j=0; for(i=0;str[i]!=’ 0’;i++) if(str[i]!=’’)str[j++]=str[i]; str[j]=’ 0’; main() char str[81]; int n; printf( Input a string: ); gets(str); puts(str); fun(str); printf( %s n ,str);
A.asdafaaz67
B.asd af aa z67
C.asd
D.z67
点击查看答案&解析
单项选择题
有以下程序 #include <stdio.h> main() int x=1,y=0,a=0,b=0; switch(x) case 1: switch(y) case 0:a++; break; case 1:b++; break; case 2:a++;b++; break; case 3:a++;b++; printf( a=%d,b=%d n ,a,b); 程序的运行结果是
A.a=1,b=0
B.a=2,b=2
C.a=1,b=1
D.a=2,b=1
点击查看答案&解析
相关试题
有以下程序 #include <stdio.h> int...
有以下程序 #include <stdio.h> mai...
阅读下列程序,当运行函数时,输入asd af...
有如下程序 main() char ch[2][5...
若有以下定义: struct link int data...