用宏来求数组元素个数

#define NELEMENTS(array) (sizeof(array) / sizeof((array)[0]))
原文地址:https://www.cnblogs.com/chenkkkabc/p/2954660.html