5 ms·
How does extern void foo(char a[..]); differ from extern void foo(size_t dim, char a[dim]); if they are meant to be binary compatible?
by Crinus 7y ago
How does
extern void foo(char a[..]);
differ from
extern void foo(size_t dim, char a[dim]);
if they are meant to be binary compatible?
- pjmlp 7y agoThe programmer doesn't have to keep both in sync manually, so there is less chance that they blow up, as it happens regularly in C code, even after being reviewed.