A
Alvin Bruney
Is a switch more efficient than an if statement? I observe thru the debugger
that a switch statement jumps directly to its case handler where as an if
statement examines all conditions sequentially. Is that a trick of the
debugger or is a switch quicker by O(n).
that a switch statement jumps directly to its case handler where as an if
statement examines all conditions sequentially. Is that a trick of the
debugger or is a switch quicker by O(n).