• Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    8
    arrow-down
    7
    ·
    20 hours ago

    Should ≠ Needs to

    You can do it, and it will work, but it’s unclean and not best-practice. I wouldn’t be surprised if it’s undefined behaviour.

    • xmunk
      link
      fedilink
      arrow-up
      19
      ·
      19 hours ago

      Just to clarify. It is defined behavior - there’s plenty of undefined behavior in C but that ain’t one of them.