• 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?