|
-
February 21st, 2003, 10:31 AM
#1
Efficiency of switch statement.
Hi all,
Just a general question. I heard today that the switch statement in C++ is more efficient than using if-elseif structure. Someone told me that the order in which the 'case' statements appear is not important anymore. IS this true? Does C++ create some kind of a jump table for a switch statement or something?
Thanks,
Xargon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|