this post was submitted on 31 Aug 2024
11 points (100.0% liked)

General Programming Discussion

7734 readers
17 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. 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
[โ€“] DmMacniel@feddit.org 0 points 1 month ago* (last edited 1 month ago) (9 children)

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.

[โ€“] bit@ohai.social 8 points 1 month ago

@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. ๐Ÿค“

load more comments (8 replies)