• JakenVeina@lemm.ee
    link
    fedilink
    arrow-up
    15
    ·
    1 year ago

    The loop will run to completion with no side effects. Unless it gets optimized away by the compiler or CPU.

    • vext01@lemmy.sdf.org
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Now slap some commas in there and you can have side effects in the loop header.

      Guaranteed to confuse :)

    • Miaou@jlai.lu
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      1 year ago

      It’s actually ub, so it could also find the cure to cancer