Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Search Your Question

Thursday, April 24, 2008

How does the switch statement in C# differ from that of C/C++?

In C#, break statements are required for each case of the switch statement. C# does not allow fallthrough from one case to the next.

To allow multiple cases to execute the same statement blocks, use the 'goto case' or 'goto default' statements.
In C#, The default case is not required.

No comments:

Archives