用宏来求数组元素个数

#define NELEMENTS(array) (sizeof(array) / sizeof((array)[0]))

 

posted on 2013-03-11 21:19  chenkkkabc  阅读(541)  评论(0编辑  收藏  举报