1
Reply

What is the difference about Switch statement in C#?

Samir Bhogayta

Samir Bhogayta

Jun 25, 2016
275
0

    No fall-throughs allowed. Unlike the C++ switch statement, C# does not support an explicit fall through from one case label to another. If you want, you can use goto a switch-case, or goto default. case 1: cost += 25; break; case 2: cost += 25; goto case 1;

    Samir Bhogayta
    June 25, 2016
    0