3 回答

TA貢獻2021條經(jīng)驗 獲得超8個贊
const
.
1
, 'a'
, 0xFF
sizeof
const int N = 5; /* `N` is not a constant in C */
N
static int j = N; /* ERROR */
#define
#define

TA貢獻1863條經(jīng)驗 獲得超2個贊
具有靜態(tài)存儲持續(xù)時間的對象的初始化程序中的所有表達式都應(yīng)該是常量表達式或字符串文本。
6.6/10 - An implementation may accept other forms of constant expressions
my_foo
int main(){ foo_t my_foo = foo_init; return 0;}
- 3 回答
- 0 關(guān)注
- 827 瀏覽
添加回答
舉報