宏定义求数组元素个数

来源:互联网 发布:海森矩阵的作用 编辑:程序博客网 时间:2024/06/05 06:57

宏定义求数组元素个数

#define Length(table) (sizeof(table) / sizeof(table[0]))