20010124-1.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 10 行

C
10
字号
/* Origin: testcase from Joseph Myers <jsm28@cam.ac.uk>, problem pointed   out in a post to comp.std.c   <980283801.3063.0.nnrp-07.c2deb1c2@news.demon.co.uk>   by Dibyendu Majumdar <dibyendu@mazumdar.demon.co.uk>.   Compound literals should be parsed as postfix expressions, rather than   as cast expressions.  In particular, they are valid operands of sizeof.  */struct s { int a; int b; };char x[((sizeof (struct s){ 1, 2 }) == sizeof (struct s)) ? 1 : -1];

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?