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:10

>>13
For specific advanced questions, I just direct them to the right place? If I have an advanced C-related question which the documentation and standard cannot answer, I can ask c.l.c or ##c, Lisp - #lisp or c.l.l. Algorithmic advice? If Knuth doesn't have it, I ask in the relevant place. I can't remember the last time I asked /prog/ a question, and I've probably been here for at least 2 years.

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