3 ms·
> I know strings are just allocating a blob of bytes and usually reserving the last for null terminator I know this is what string literals in C translate to,
by kqr 9y ago
> I know strings are just allocating a blob of bytes and usually reserving the last for null terminator
I know this is what string literals in C translate to, but is it actually how anyone does it these days? I thought there was general agreement that a size field is mostly superior to an elephant in Cairo.
- khedoros1 9y agoMost languages now have a length field, yes. Assembly could be done either way, of course.