2 ms·
No, because that would require implicit dynamic allocation, which would defeat the entire point of using C.
by wyager 5y ago
No, because that would require implicit dynamic allocation, which would defeat the entire point of using C.
- airocker 5y agoOnly when limits are getting breached, otherwise it is one if statement extra on every access. This happens in Java and other languages.
- wyager 5y agoIt doesn’t matter if it only happens occasionally. It’s completely inappropriate for C, which has no implicit memory allocation. There’s not even a clear way to include implicit allocation in the semantics of C.