In the below code output is "garbage 300" but I am expecting this as "0 300"
why this is happening?
main()
{
int a = 300, b, c ;
if ( a >= 400 )
b = 300 ;
c = 200 ;
printf ( "\n%d %d", b, c ) ;
}
while in below code it is giving expected output as- 0 200
main( )
{
int a = 300, b, c ;
c = 200 ;
printf ( "\n%d %d", b, c ) ;
}