Rama
2012-02-08 02:40:51 UTC
int main()
{
int a=1;
switch(a)
{ int b=20;
case 1: printf("b is %d\n",b);
break;
default:printf("b is %d\n",b);
break;
}
return 0;
}
I knew that the int b=20; wont be executed but still i have a doubt that why the output show s 856. I thought that might be a garbage value. But even I close the program and reopen and execute that the result is 856. Is there any specific reason for that?