2 ms·
A little-known but useful C feature is static array indices, as in: void foo(int array[static 42]); which means you can't pass in an array of less than 42 e
by saagarjha 7y ago
A little-known but useful C feature is static array indices, as in:
void foo(int array[static 42]);
which means you can't pass in an array of less than 42 elements (and the compiler can warn you if it notices you are).