#include<stdio.h> int main() { int a=10; switch(a) { case '1': printf("ONE\n"); break; case '2': printf("TWO\n"); break; defa1ut: printf("NONE\n"); } return 0; }
Answer :
- Program Won't be Compiled.
- Check Spelling of "default".
defa1ut:
Simply Learn C Programming Language | Download C Programming Books | C Programs Header Files |Chapters Organized by Topics | Tutorials | Tutors
Browse: Home > Check Your C Skill : Switch Case : 1
#include<stdio.h> int main() { int a=10; switch(a) { case '1': printf("ONE\n"); break; case '2': printf("TWO\n"); break; defa1ut: printf("NONE\n"); } return 0; }
defa1ut:
Similar Pages Switch Case : Skill
Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates
0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email