单项选择题
有以下程序:
struct s
int x,y;) data[2]=10,100,20,200);
main()
struct s *p=data;
printf("%d\n",++(p->x));
程序运行后的输出结果是()。
A. 10
B. 11
C. 20
D. 21
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面程序运行后的输出结果是()。 struct abc int a,b,c; main() struct abc s[2]=1,2,3,4,5,6; int t=-s[0].a+s[1].b; printf( %d n ,t);
A. 5
B. 6
C. 7
D. 8
点击查看答案&解析
单项选择题
有下列程序: main() int k=5,n=0; do switch(k) case 1: case 3:n+=1;k--;break; default:n=0;k--; case 2: case 4;n+=2;k--;break; printf( %d ,n); while(k>O&&n<5); 程序运行后的输出结果是()。
A. 235
B. 0235
C. 02356
D. 2356
点击查看答案&解析
相关试题
一个模块直接访问另一个模块的内容,称为_...
以下程序运行后的输出结果是______。...
在关系模型中,把数据看成是二维表,每一个...
若有定义:int a=6,b=8,c=14;接...
以下程序运行后的输出结果是()。 #incl...