r/ProgrammerHumor • • Nov 30 '19

C++ Cheater

Post image
79.3k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

2

u/making_code Nov 30 '19

why not just do "return (num & 1)" ?

17

u/memeticmachine Nov 30 '19

Because this is a slide about switch statements billy ~ teacher's pet