• Cerise_W@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    10 months ago

    Can we talk about variable scope? Is x changing inside a called function without so much as a pointer being passed?

    • Deuces@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      10 months ago

      Avoiding global variables is just something dumb people do to protect themselves. Real programmers declare every variable before Main.