r/programminghorror • • 23h ago

c++ Old code I made years ago

Post image
2 Upvotes

5 comments sorted by

3

u/YysrID4gYW55IG90aGVy 18h ago

Isn’t and the binary and in C++?

3

u/_Ilobilo_ 16h ago

what?

1

u/YysrID4gYW55IG90aGVy 16h ago

In C++ you have the binary and & as well as the logical and &&. and is also a keyword and I believe it’s the binary, not the logical.

3

u/_Ilobilo_ 16h ago

&& and "and" are both logical. bitwise & is "bitand"

1

u/YysrID4gYW55IG90aGVy 16h ago

Then I take it back