Which is better a switch statement or if-else if-else statement?

Posted by TheGNUGuy on Stack Overflow See other posts from Stack Overflow or by TheGNUGuy
Published on 2010-04-22T15:36:59Z Indexed on 2010/04/22 15:43 UTC
Read the original article Hit count: 330

I am just wondering if one is better (i.e. more efficient). To me the seem to be the same other than the syntax.

© Stack Overflow or respective owner

Related posts about switch-statement

Related posts about if-statement