3 ms·
> C doesn't have strings. C has string literals though, and those bake a specific string representation into the language (of course libraries can use their ow
by flohofwoe 4y ago
> C doesn't have strings.
C has string literals though, and those bake a specific string representation into the language (of course libraries can use their own string representation, but those then need at least some conversion function from string literals).
- b5n 4y agoString literals in C are simply a pointer to an array of bytes (generally speaking), and that's how they should be treated. Considering them as strings in the HLL sense is the entire issue here.