单项选择题
若有以下程序段: struct st {int n; int*m;}; int a=2,b=3,c=5; struct st s[3]=({101,&a},{102,&c},{103,&b}}; main() {struct st*p; p=s; …} 则以下表达式中值为5的是( )。
A.(p++)->m
B.*(p++)->m
C.(*p).m
D.*(++p)->m
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include<stdio.h> #define X 5+6 main() {int a=2,c; C=X*2: printf( %d ,c); } 程序运行后的输出结果是( )。
A.17
B.22
C.16
D.11
点击查看答案&解析
单项选择题
当用“#define F 37.5f”定义后,下列叙述正确的是( )。
A.F是float型数
B.F是char型数
C.F无类型
D.F是字符串
点击查看答案&解析
相关试题
以下程序中函数sort的功能足对a数组中的数...
运行下列程序时,若输入数据为“321”,...
有以下程序 #include<stdio.h> #inc...
设有定义:char s[10];int i=0;...
设有定义:int k=0;,下列选项的4个表...