可变数组用法

来源:互联网 发布:考勤机怎么导出数据 编辑:程序博客网 时间:2024/05/10 09:16
#include <stdio.h>
struct test
{
        int a;
        int list[];
};


int main()
{
        printf("sizeof struct test=%d\n", sizeof(struct test));
        return 0;

}


运行结果:4

0 0
原创粉丝点击