मराठी

Assertion (A): In switch case break statement avoids fall through. Reason (R): break statement helps to execute only one case at a time. - Computer Applications

Advertisements
Advertisements

प्रश्न

Assertion (A): In switch case break statement avoids fall through.

Reason (R): break statement helps to execute only one case at a time.

पर्याय

  • Both (A) and (R) are true and (R) is a correct explanation of (A).

  • Both (A) and (R) are true and (R) is not a correct explanation of (A).

  • (A) is true and (R) is false.

  • (A) is false and (R) is true.

MCQ
विधान आणि तर्क
Advertisements

उत्तर

Both (A) and (R) are true and (R) is a correct explanation of (A).

Explanation:

The break statement causes the control to exit the switch–case block, preventing fall-through and ensuring that only the matching case or cases are executed.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (March) Official Board
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×