A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2010 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/1065/default.asp?cachecommand=bypass