使用宏定义,计算数组的成员个数

 

#define TABLESIZE(table)    (sizeof(table)/sizeof(table[1]))

posted @ 2017-09-08 16:05  _小百  阅读(1583)  评论(0编辑  收藏  举报