Afficher un message
Vieux 21/10/2007, 12h40   #3
abhy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Variable declaration inside a switch statement.

On Oct 21, 4:00 pm, Srinu <sinu.nayak2...@gmail.com> wrote:
> 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.


Can u tell me what weird results it gives ?

  Réponse avec citation
 
Page generated in 0,04250 seconds with 9 queries