Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ufo
· 3y ago · 0 comments
According to the article, it's better to use the new flexible array syntax (int arr[]) instead of the old zero-length syntax (int arr[0]), because that allows the compiler emit better warning messages.
Comments
[–]
fsckboy
3y ago
how would compiler confusion manifest between [] and [0] if it wanted to emit warning messages?
[–]
ufo
OP
3y ago
Technically, [0] is not allowed by the standard. The real issue is [] vs [1].