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.
Comments
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.
Most languages now have a length field, yes. Assembly could be done either way, of course.