As per my understanding it is compiler depending thing..

what i feel is switch need to evaluate the expression only once but if
else if need to evaluate the expression more than once(what if
expression stored in variable and then compare...)

Does any one please comment difference in speed of switch and if
depending on how it is implemented...

I heard switch uses jump table for its operation.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to