Is there something like this available in the C standard library:
#define sizeofarr(a) ( sizeof(a) / sizeof(a[0]) )
Is there something like this available in the C standard library:
#define sizeofarr(a) ( sizeof(a) / sizeof(a[0]) )
No there is not such a thing!
For better Macro definition check this link directly:
is-there-a-standard-function-in-c-that-would-return-the-length-of-an-array