单项选择题
有以下程序 #include
struct tt {int x;struct tt *y;)*p; struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a}; main() {int i; p=a; for(i=1;i<=2;i++){printf("%d,",p->x);p=p->y;} } 程序的运行结果是
A.20,15,
B.30,17
C.15,30,
D.20,30,
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下定义和语句: struct workers {int num;char name[20];char c; struct {int day;int month;int year;}s;}; struct workers w,*pw; pw:&w; 能给w中year成员赋1980的语句是
A.w.year=1980;
B.pw->year=1980;
C.w.s.year=1 980;
D.*pw.year=1980;
点击查看答案&解析
相关试题
有以下程序#include main(){char a=...
有以下程序#includemain(){ int a=...
有以下程序 main(){int a=1,b=2...
若有以下程序段 int r=8; printf( ...
变量a中的数据用二进制表示的形式是010...