3 ms·
Null terminated string is probably the worst data structure that was invented. It is has caused numerous security problems. It takes worst performance character
by Sankozi 4y ago
Null terminated string is probably the worst data structure that was invented. It is has caused numerous security problems. It takes worst performance characteristics from array and linked lists (slow resizing, slow indexing). It definitely does not work fine.
- Joker_vD 4y agoResizing arrays is such an annoying problem... because memory address space is flat. If only we had some sort of resizeable, non-overlapping by design segments, kind of like we have virtual memory mappings... but that'd completely kill address arithmetic. Oh well.