C语言几道不懂的题目

[复制链接]
2404|0
 楼主| 此生不再 发表于 2011-9-28 23:45 | 显示全部楼层 |阅读模式
1、int (*(*p)[3])[3];指针p表示什么意思?
2、struct test
  {
unsigned a:8;
unsigned b:2;
unsigned c:6;
  };
struct test t;
t.a=0x54;
t.b=1;
t.c=1;
  sizeof(t)为什么是4?
  *(short*)&a是为什么是1364?
3、
  int a=60;
  b=a*50/100;
  b是30吗?
  这道题b没有声明,编译器按理会报错,不过这是道面试题,难道出错了,还是有玄机?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

26

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部