• @[email protected]
    link
    fedilink
    English
    282 days ago

    It’s far more often stored in a word, so 32-64 bytes, depending on the target architecture. At least in most languages.

    • @[email protected]
      link
      fedilink
      5
      edit-2
      2 days ago

      No it isn’t. All statically typed languages I know of use a byte. Which languages store it in an entire 32 bits? That would be unnecessarily wasteful.

      • @[email protected]
        link
        fedilink
        English
        112 hours ago

        It’s not wasteful, it’s faster. You can’t read one byte, you can only read one word. Every decent compiler will turn booleans into words.