Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

IF vs Switch

Name: Anonymous 2010-07-07 12:12

if (1==a){}else{} vs switch(a){case 1:}
Which one is faster? At which point of complexity switches are faster than ifs?

Name: Anonymous 2010-07-07 15:29

>>15
I guess, I see what your saying, and I wouldn't have a problem, if everyone had the same attitude. But you see, what makes /prog/ shitty is that the OP posted this question, while you haven't posted one in 2 years and that people answer questions like this, while ignore decent ones.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List