0 9

BIT102 ยท 0 ยท 5 marks

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]

C ProgrammingChapter 4: Control StructuresComparison of switch and if else ladder

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...