单项选择题
有以下定义和语句
struct workers
int nnm;charname[20];charc;
struct
int day;int month;int year;s;
;
struct workers w,*pw;
pw=&w;
能给w中year成员赋1980的语句是
A) *pw.year=1980;
B) w.year=1980;
C) pw->year=1980;
D) w.s.year=1980;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: int a=4; int f(int n) int t=0;static int a=5; if(n%2) int a=6;t+=a++; elseint a;7;t+=a++; return t+a++; main() int s=a,i=0; for(;i<2;i++)s+=f(i); printf( %d n ,s); 程序运行后的输出结果是______。
A) 24
B) 28
C) 32
D) 36
点击查看答案&解析
单项选择题
若有程序 fun(int a,int b) static int c=0 c+=a+b; retum c; main() int x=5,y=3,z=7,r; r=fun((y,x+y),z); r=fun(x,y); printf( %d n ,r); 上面程序的输出结果______。 A) 23 B) 15 C) 19 D) 18
点击查看答案&解析
相关试题
以下叙述中正确的是______。
定义结构体数组: struct stu int num...