Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
7786655
on Sept 15, 2020
|
parent
|
context
|
favorite
| on:
C’s Biggest Mistake (2009)
#define ARRAY_SIZE(x) ((sizeof x) / sizeof *(x))
But ideally there would be a builtin to do this, since this gives nonsense results if you pass a pointer instead of an array.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: