|
-
January 2nd, 2013, 09:22 AM
#5
Re: A question regarding switch/case
 Originally Posted by Paul McKenzie
Again, where is the break statement for the default case? Do you know why break makes a difference?
Regards,
Paul McKenzie
I thought case statement is like if statement. So in my example, when i is 4 and it meets case 1, then case 1 is not going to be entered. Why am I wrong? Thanks.
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
|