हिंदी

State True or False. In ‘switch.. case’, two variables can be compared.

Advertisements
Advertisements

प्रश्न

State True or False.

In ‘switch.. case’, two variables can be compared.

सत्य या असत्य
Advertisements

उत्तर

This statement is false.

Explanation:

A switch statement compares a single variable or expression against fixed constant values (literals). It cannot directly compare two different variables against each other in its case labels.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Revision of Class 9 Syllabus - Exercises [पृष्ठ ४५]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 1 Revision of Class 9 Syllabus
Exercises | Q 2. (vii) | पृष्ठ ४५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×