Y
Hacker News
new
|
ask
|
show
|
jobs
by
Koshkin
2105 days ago
Semantically though, the second argument is still just a naked pointer.
2 comments
david2ndaccount
2105 days ago
That’s why you use the proper declaration of
void f(size_t n, int (*v)[n])
instead.
link
dependenttypes
2105 days ago
Is it? I am pretty sure that v[x] where x >= n is UB.
link