是否可以初始化一个指向结构的指针数组?就像是:
struct country_t *countries[] = {
{"United States of America", "America"},
{"England", "Europe"},
{"Ethiopia", "Africa"}
}
Run Code Online (Sandbox Code Playgroud)
我想这样做是为了让实体在不连续的内存中,并在连续的内存中指向它们......但我不能使用动态内存,所以我想知道没有它是否可行.