|
-
January 2nd, 2013, 07:01 AM
#8
Re: A question regarding switch/case
 Originally Posted by LarryChen
Actually, I expected the output to be just "zero". Since i is 4, so it doesn't satisfy case 1.
And if you set i to equal 1, and your case 1 didn't include a break statement, what do you think the output would be?
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
|