r/programminghumor • • Mar 11 '26

The troubles of cpp coding

Post image
39 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/timmerov Mar 15 '26
int x = 42;
bool b1 = x; // what does this actually do?
bool b2 = !!x; // true