Which will probably be never.

  • CodeMonkey@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    4 months 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.

    • nexussapphire@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      It wouldn’t be that much processing compared to the rest of the app. It would lot more efficient than running an effectively infinite loop or arithmetic on an arbitrarily large number as a result of an unsigned variables.