1、在GNU C 中可以定以无大小的数组 例题: #include <stdio.h> int main(int argc,char *argv[ ]) { struct test { int a ; char b[0]; }; printf("sizeof(struct test)=%d /n",sizeof(struct test)); } 执行结果:sizeof(struct test)=4 2