Are there macros or builtins that can return the length of arrays at compile time in GCC?
For example:
int array[10];
For which:
im not aware of a builtin that does this, but i recently used:
sizeof(array)/sizeof(array[0])
to do just that