单项选择题

以下程序的输出结果是 ( )
# include<stdio.h>
main()

union unint i;
long k;
char c;
;
struct byte
int a;
long b;
union un c;
r;
printf("%d\n",sizeof(r));

A.10
B.13
C.7
D.8
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序 #include<stdio.h> void fun(float * p1,int n1,float,*p2,int n2,float * s) int i; s=(float *)calloc(1,sizeof(float)); *s=0; for(i=0;i<n1;i++) *s+=*p1++; for(i=0;i<n2;i++) *s+=*p2++; main() float a[2]=1.1,2.2,b[3]=10.0,20.0,30.0),*s=a; fun(a,2,b,3,s); printf( %f n ,*s); 上面程序的输出结果是 ( )
A.60.000000
B.3.300000
C.63.300000
D.1.100000
单项选择题
有如下程序 #include<stdio.h> main() int v1=0,v2=0; char ch; while((ch=getchar())!=’#’) switch(ch) case ’a’; casff ’h’; default:v1++; case ’0’;v2++; printf( %d,%d n ,v1,v2); 如果从键盘上输入china#<回车>,则程序运行结果为 ( )
A.2,0
B.5,0
C.5,5
D.2,5
相关试题
  • 函数调用 strcat(strcpy(str1,str2)...
  • 若有如下程序段; int x=3,y=4,z;...
  • 公司中有多个部门和多名职员,每个职员只能...
  • 下列选项中不屑于C语言数据类型的是 ( )
  • 在16位C编译系统上,若定义long a;,则...