Code:
void main()
{
int x;
float y;
char z;
printf("\nx=%d",x);
printf("\ny=%d",y);
printf("\nz=%d",z);
getch();
}
x=-28852
y=0.000000
z=!!
But if I declare x,y and z in global declaration section then output comes
x=0
y=0.000000
z= (here comes cursor after one blankspace).
why?

