• nutomicA
    link
    fedilink
    arrow-up
    4
    ·
    4 years ago

    Worth mentioning that this is C (or possibly C++).

      • nutomicA
        link
        fedilink
        arrow-up
        1
        ·
        4 years ago

        Lucky me, I’m not familiar enough with any of these languages.

    • AgreeableLandscapeOPM
      link
      fedilink
      arrow-up
      1
      ·
      4 years ago

      Does C/C++ do automatic type casting? I feel like an operation on false shouldn’t be a valid input for an integer variable. At least I hope not.

      • mae
        link
        fedilink
        arrow-up
        2
        ·
        4 years ago

        booleans are implemented as having int values of 0 and 1, so kinda?