单项选择题
下列程序的输出结果是 ( )
struct abc
int a,b,c;;
main()
struct abc s[2]=1,2,3,4,5,6;
int t;
t=s[0].a+s[1].b;
printf("%d\n",t);
A.3
B.4
C.5
D.6
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
设有如下定义和声明: struct 3 int a; struct s *next ; struct s x[4]=1,&x[1],3,& x[2],5,&x[3],7,' 0'),*t; t=&x[0]; 则下列表达式值为2的是 ( )
A.++t->a
B.(*t).a++
C.t->a++
D.t++->a
点击查看答案
单项选择题
执行下列程序时输入:123<空格>456<空格>789<回车>,输出结果是 ( ) main() char s[100] int c,i; scanf( %c ,&C) ; scanf( %d ,&i); scanf( %s ,s); printf( %c,%d,%s n ,c,i,s);
A.1,456,789
B.1,23,456
C.1,23,456,789
D.123,456,789
点击查看答案
相关试题
有以下程序 #inelude<stdio.h> main...
以下程序调用findmax函数返回数组中的最大...
有以下程序 #include <stdio.h> mai...
下面程序的输出结果是 ( ) main() ...
下面不属于软件工程的3个要素的是 ( )