Advertisements
Advertisements
प्रश्न
State True or False.
In ‘switch case’, default is optional.
सत्य या असत्य
Advertisements
उत्तर
This statement is true.
Explanation:
The default case is completely optional in a switch statement. If no cases match and there is no default, the program simply skips the entire switch block and moves to the next line of code.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
