C Programming05 marksComparison of switch and if else ladder
Differentiate between switch case and else .. if ladder. Why is break statement used inside switch case? Explain briefly.
Differentiate between switch case and else .. if ladder. Why is break statement used inside switch case? Explain briefly. [5]
Feature Switch Case Else-If Ladder --------- Basis of comparison Tests a single variable/expression against multiple constant values Tests multiple different conditions (expressions) Data type Works with integer, character, and enumeration types only Works with any data type including float, stri...