C C++ Topic Explanations

Pages

  • Home
  • Just Programming
  • Java Aptitude
  • Aasaan IT Solution
  • My Facebook Group
  • My Site

Monday, 25 March 2013

Is a default case necessary in a switch statement?


Is a default case necessary in a switch statement?
No, but it is not a bad idea to put default statements in switch statements for error- or logic-checking purposes



Blog Author: Vijay Kumar

Go to: Coding Problem Solutions, Java Aptitude


Posted by Vijay Kumar at 3:04 pm
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2013 (55)
    • ▼  March (28)
      • ▼  Mar 25 (6)
        • Can we specify variable field width in a scanf() f...
        • Remember Points
        • When is a switch statement better than multiple if...
        • Is a default case necessary in a switch statement?
        • What is dangling pointer in c?
        • What is wild pointer in c?
      • ►  Mar 27 (10)
      • ►  Mar 28 (1)
      • ►  Mar 29 (2)
      • ►  Mar 30 (4)
      • ►  Mar 31 (5)
    • ►  April (9)
      • ►  Apr 03 (2)
      • ►  Apr 04 (1)
      • ►  Apr 05 (1)
      • ►  Apr 09 (2)
      • ►  Apr 12 (1)
      • ►  Apr 16 (1)
      • ►  Apr 29 (1)
    • ►  May (18)
      • ►  May 06 (9)
      • ►  May 07 (6)
      • ►  May 08 (2)
      • ►  May 16 (1)

About Me

Vijay Kumar
View my complete profile
Simple theme. Theme images by luoman. Powered by Blogger.