Discussion
:
Variable declaration inside a switch statement.
Afficher un message
21/10/2007, 12h00
#
1
Srinu
Messages: n/a
Hébergeur:
Variable declaration inside a switch statement.
Hi all,
If we compile the below piece of code, it gets compiled. But gives
weird result.
switch(x)
{
int y=2;
case 1:
printf("%d", y);
}
What, if any, the C standard says about it?
Srinu.
Srinu
Page generated in
0,05444
seconds with
9
queries