How to determine the length of an array at compile time?

前端 未结 4 1233
一生所求
一生所求 2020-12-18 04:30

Are there macros or builtins that can return the length of arrays at compile time in GCC?

For example:

int array[10];

For which:

4条回答
提交回复
热议问题