3 ms·
But the size of C89 arrays is fixed and known at compile time. Why would the length need to be passed?
by acconsta 11y ago
But the size of C89 arrays is fixed and known at compile time. Why would the length need to be passed?
- klodolph 11y agoIt's not necessarily known by the caller, since the array might be declared with an unspecified size and defined in a different translation unit.
- acconsta 11y ago"might" is the key word there though. What if the array has a statically known size, like the code sample in the email? I suppose it could just be for consistency.