Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
disposablezero
· 9y ago · 0 comments
Many implementations historically also allocated enough memory to include one extra element at the end of the array.
Comments
[–]
tedunangst
9y ago
I find this improbable.
[–]
angry_octet
9y ago
Agreed, 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.