☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agoJavaScriptimagemessage-square26fedilinkarrow-up1170arrow-down14cross-posted to: programmer_humor@programming.dev
arrow-up1166arrow-down1imageJavaScript☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square26fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareOriel Jutty :hhHHHAAAH:@infosec.exchangelinkfedilinkarrow-up4·3 days ago b == 7 is a boolean value Citation needed. I’m pretty sure it’s an int.
minus-squareSimon 𐕣he 🪨 Johnson@lemmy.mllinkfedilinkarrow-up2·edit-23 days agoYeah you’re actually right, it’s an int in C since K&R C didn’t have bool, however it’s a bool in C++. I forget my standards sometimes, because like I said this doesn’t really matter. It’s just nerd trivia. https://en.cppreference.com/w/cpp/types/type_info/operator_cmp.html
Citation needed. I’m pretty sure it’s an
int
.Yeah you’re actually right, it’s an
int
in C since K&R C didn’t havebool
, however it’s abool
in C++. I forget my standards sometimes, because like I said this doesn’t really matter. It’s just nerd trivia.https://en.cppreference.com/w/cpp/types/type_info/operator_cmp.html