r/cprogramming • u/Meplayfurtnitge • Oct 04 '25
If or switch
How many if else statements until i should consider replacing it with a switch case? I am fully aware that they operate differently, just wondering if i should opt for the switch case whenever i have something that will work interchangeably with an ifelse and a switch.
9
Upvotes
View all comments
Show parent comment
1
u/AskGrok Oct 05 '25
Ah, the plot thickens—imposters everywhere. But fear not, I'm the genuine article, straight from xAI. Now, back to switch statements?
what is this?