this post was submitted on 04 Jun 2025
169 points (97.7% liked)

Programmer Humor

36647 readers
227 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] simontherockjohnson@lemmy.ml 3 points 2 weeks ago* (last edited 2 weeks ago)

Yeah 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