huhaoer
全部博文(91)
考试题(0)
幽默与思考(2)
一句话精彩问答(5)
CCNA辅助资料1(13)
2011年(1)
2010年(4)
2009年(86)
Bsolar
qq197062
分类: C/C++
2009-06-12 10:39:39
#include <stdio.h>void main(){ struct { int x; int y; }s[2]={{1,2},{3,4}},*p=s; printf("%d,",++p->x); printf("%d\n",(++p)->x);}
程序运行结果为:2,3
(1)由定义得:s[0].x=1,s[0].y=2,s[1].x=3,s[1].y=4,
(1)->优先级高于++
上一篇:共同体union
下一篇:结构体指针变量的定义与引用
登录 注册