(a) Explain the two ways selection - if, if - else, nested - if, casc…

Previous year question for Computer Programming.

Question

(a) Explain the two ways selection - if, if - else, nested - if, cascaded if - else in C language with suitable example. (10)

(b) Explain switch statement with syntax with suitable example. (5)

(c) Design and develop C program to read a year as input and find whether it is leap year or not? (5)

Related pages

More PYQs on Decision Making

Open on CachedInfo