5 ms·
Many implementations historically also allocated enough memory to include one extra element at the end of the array.
by disposablezero 10y ago
Many implementations historically also allocated enough memory to include one extra element at the end of the array.
- tedunangst 10y agoI find this improbable.
- angry_octet 10y agoAgreed, compiler implementors rarely decide to use more memory than is required. There may be a stack canary, but this is between stack allocated variables and control flow structures, not for every array.