【发布时间】:2011-01-14 02:09:58
【问题描述】:
我熟悉 C 中的结构和数组,但是我不知道下面的代码中发生了什么。 struct 声明的顺序通常是:
struct employee {
char title;
int year;
} mark;
为什么 struct(下)和 [] 括号后面有 2 个单词?据我所知,它被用作条件、动作查找表。
const struct act_tbl ActionTbl[] =
{
{0, BUZZ | DISP | A_ONCE},
{0, BUZZ | DISP | A_ONCE},
};
【问题讨论】:
标签: c arrays struct constants lookup