These 2 arrays are being modified a lot in the source code, that is why I want the preprocessor to count the number of members in the array. Is it also possible to have the gcc
preprocessor
check that array a ends in NULL and array b ends in 0?
static const char *a[] = { "string1", "string2", NULL };
static const int b[] = { 10, 20, 0 };