switch versus if-statements?
#3

With one or two in each, it makes no difference. Although 1000 cases in a switch statement is more efficient than 1000 if-else-statements.
Reply


Messages In This Thread
switch versus if-statements? - by LarzI - 07.10.2010, 12:43
Re: switch versus if-statements? - by Harry_Gaill - 07.10.2010, 12:46
Re: switch versus if-statements? - by jameskmonger - 07.10.2010, 12:51
Re: switch versus if-statements? - by Zeex - 07.10.2010, 13:01
Re: switch versus if-statements? - by LarzI - 07.10.2010, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)