AgreeableLandscape@lemmy.mlM to Programmer Humor@lemmy.ml · 4 years agoi++lemmy.mlimagemessage-square11fedilinkarrow-up123arrow-down11
arrow-up122arrow-down1imagei++lemmy.mlAgreeableLandscape@lemmy.mlM to Programmer Humor@lemmy.ml · 4 years agomessage-square11fedilink
minus-squarenutomic@lemmy.mllinkfedilinkarrow-up4·4 years agoWorth mentioning that this is C (or possibly C++).
minus-squareshilangyu (lemmur)@lemmy.mllinkfedilinkarrow-up2·edit-24 years agocould be javascript or matlab or julia
minus-squarenutomic@lemmy.mllinkfedilinkarrow-up1·4 years agoLucky me, I’m not familiar enough with any of these languages.
minus-squareAgreeableLandscape@lemmy.mlOPMlinkfedilinkarrow-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-squaremae@lemmy.mllinkfedilinkarrow-up2·4 years agobooleans are implemented as having int values of 0 and 1, so kinda?
Worth mentioning that this is C (or possibly C++).
could be javascript
or matlab
or julia
Lucky me, I’m not familiar enough with any of these languages.
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?