If block vs Switch-Case block

Generally is there a performance difference between using an if block with many else ifs compared to a switch case block? Do some languages or style conventions prefer one over the other?

Specifically I am curious about Matlab, C, and C++

5
задан Elpezmuerto 14 October 2010 в 14:51
поделиться