this post was submitted on 31 Aug 2024
11 points (100.0% liked)
General Programming Discussion
7740 readers
2 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
How would the machine know where the string would stop, since a string could contain literally any character?
But yeah... a
.text
section would be an alternative.@DmMacniel @velox_vulnus
Fixed length strings. You can only ever have strings of a particular length, no more, no less. No need to store the string length nor terminating characters. ๐ค