NIELIT O Level January-2016
Q 6 B (i) : Differentiate between if and switch case
Solution :
While programming, a number conditions come and a number of
decisions need to be taken by a programmer. For decision making in C
programming, the statements such as if,
if..else, else if, switch case etc.
Though which when number of possible condition got increase in
some scenario then if-else ladder implementation become complicated. So we can
achieve this using switch case in simple manner with decreasing complexity.