क्या सी # ने आपको case:
कथन के बीच switch()
कथन के अंदर घुंघराले ब्रैकेट को छोड़ने की अनुमति दी है?सी # घुंघराले ब्रैकेट के साथ/बिना कथन कथन .... क्या अंतर है?
जावास्क्रिप्ट प्रोग्रामर अक्सर करते समय उन्हें छोड़ने का क्या प्रभाव पड़ता है?
उदाहरण:
switch(x)
{
case OneWay:
{ // <---- Omit this entire line
int y = 123;
FindYou(ref y);
break;
} // <---- Omit this entire line
case TheOther:
{ // <---- Omit this entire line
double y = 456.7; // legal!
GetchaGetcha(ref y);
break;
} // <---- Omit this entire line
}
जावा दुनिया http://stackoverflow.com/questions/633497/java-switch-cases-with-or-without-braces – nawfal