I'm curious about inserting the break inside a brackets in a case.
int a = 1;
switch (a)
{
case 1:
{
a = a;
break;
}
a = a;
case 2:
{
a = a;
}
break;
}
In the C++ code above, in case 1 I've inserted the break inside the brackets, it is an error?
Is there any difference between case 1 and case 2 in the example above?