brace2.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 9 行

C
9
字号
// { dg-do compile }// [dcl.init] paragraph 13.int x = { 2 };const char * y = { "hello" };int a = 2;int b = { 2,3 }; // { dg-error "requires one element" }int c = { { 2 } } ; // { dg-error "braces around scalar initializer" }

⌨️ 快捷键说明

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