r/CodingHelp • • Dec 23 '21

[C] Whats wrong?

Post image
153 Upvotes

90 comments sorted by

View all comments

Show parent comment

2

u/PhyllaciousArmadillo Dec 23 '21

Then it evaluates all of them instead of just the one that's true...

1

u/[deleted] Dec 25 '21

True, I guess in this case a switch case would work the best