0 votes 0 votes main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } } Programming in C programming-in-c + – Desert_Warrior asked May 9, 2016 Desert_Warrior 901 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes I think Zero Three Dexter answered May 9, 2016 Dexter comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments rajan commented May 9, 2016 reply Follow Share it does not matter wheather default is put last or first so here firstly goes to case 3 and then print 3 and break then come out the loop 3 votes 3 votes Dexter commented May 9, 2016 reply Follow Share okay sorry then i have mistaken :) 0 votes 0 votes rajan commented May 9, 2016 reply Follow Share its ok yr 0 votes 0 votes Please log in or register to add a comment.