English

State True or False. In ‘switch.case’, break is necessary after each case.

Advertisements
Advertisements

Question

State True or False.

In ‘switch.case’, break is necessary after each case.

True or False
Advertisements

Solution

This statement is false.

Explanation:

The break statement is optional, not mandatory. Omitting it causes execution to “fall through” into the subsequent case blocks automatically.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 45]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 2. (ix) | Page 45
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×