Advertisements
Advertisements
प्रश्न
Is it necessary to include default case in a switch statement? Justify.
संक्षेप में उत्तर
उत्तर
Yes. When no case is available for a given switch variable value, the 'default' case displays a message to the user indicating the incorrect decision.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?