Alt text:

Transcendence meme template

function main() {…}

int main() {…}

void main() {…}

U0 main() {…}

/* HolyC example */
U0 Main()
{
  U8 *message = "hello world";
  "%s\n",message;
}
Main;
  • labsin@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    In c they do indeed just mean shorter and longer int as the size of the int is defined by the compiler and target and originally represented the hardware.

    There are types like int32_t or int_least16_t.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      16 days ago

      Huh, so if you don’t opt for these more specific number types, then your program will explode sooner or later, depending on the architecture it’s being run on…?

      I guess, times were different back when C got created, with register size still much more in flux. But yeah, from today’s perspective, that seems terrifying. 😅