AgreeableLandscapeM to Programmer Humor · 4 years agoi++imagemessage-square9fedilinkarrow-up123arrow-down11
arrow-up122arrow-down1imagei++AgreeableLandscapeM to Programmer Humor · 4 years agomessage-square9fedilink
minus-squareAgreeableLandscapeOPMlinkfedilinkarrow-up1·4 years agoDoes 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.
minus-squaremaelinkfedilinkarrow-up2·4 years agobooleans are implemented as having int values of 0 and 1, so kinda?
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.booleans are implemented as having int values of 0 and 1, so kinda?