资源预览内容
第1页 / 共2页
第2页 / 共2页
亲,该文档总共2页全部预览完了,如果喜欢就下载吧!
资源描述
一、选择题1、有定义如下:struct sk int a;float b;data ,*p;如果 p=&data;则对于结构变量 data 的成员 a 的正确引用是_。A)(*) .data.a B) (*p).a C) p-data.a D) p.data.a答案:B2、已知:struct st int n;struct st *next;static struct st a3=1,&a1,3,&a2,5,&a0,*p;如果下述语句的显示是 2,则对 p 的赋值是_。printf(%d,+(p-next-n);A) p=&a0; B) p=&a1; C) p=&a2; D) p=&a3;答案:C3、已知:struct int i;char c;float a;test;则 sizeof(test)的值是 。A) 4 B) 5 C) 6 D) 7答案:D4、下列关于结构型、共用型、枚举型的定义语句中,正确的是() struct ss int x union uu int x;xx5; enum ee int x; structint x;答案:5、已知:union u_type int i;char ch;float a;temp;现在执行temp.i=266 ;printf(%d,temp.ch)的结果是 。A) 266 B) 256 C) 10 D) 1答案:C
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号