Hacker News new | past | comments | ask | show | jobs | submit login

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).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: