Which will probably be never.

  • CodeMonkey@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    C does exactly what you tell it, no more. Why waste cycles setting a variable to a zero state when a correct program will set it to whatever initial state it expects? It is not user friendly, but it is performant.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Except that this is wrong. C is free to do all kinds of things you didn’t ask it to, and will often initialize your variables without you writing it.