0 votes 0 votes Hradesh patel asked Jan 6, 2017 Hradesh patel 344 views answer comment Share Follow See 1 comment See all 1 1 comment reply Kaushik.P.E commented Jan 6, 2017 reply Follow Share Option A?? 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes If break is not mentioned in cases of switch then order of execution becomes sequential [till we find break or exhaust all cases]... So here stmt executed are : printf("GATE-"); printf("2015\n"); break; So this sequence outputs : GATE-2015 Gate Mission 1 answered Jan 6, 2017 Gate Mission 1 comment Share Follow See all 4 Comments See all 4 4 Comments reply Hradesh patel commented Jan 6, 2017 reply Follow Share can here check default in middle 0 votes 0 votes Gate Mission 1 commented Jan 6, 2017 reply Follow Share we can write default anywhere, though its a good convention to write it in last. 0 votes 0 votes Hradesh patel commented Jan 6, 2017 reply Follow Share so that after Case B than case C is not execute because here default : break comes ....i am right 0 votes 0 votes Gate Mission 1 commented Jan 6, 2017 reply Follow Share yes correct. 0 votes 0 votes Please log in or register to add a comment.