int a = 1, b = 0;
if(a, b)
printf("success
");
else
printf("fail
");
if(b, a)
printf("success
");
else
printf("fail");
This is a cpp file and I got the output in Visual Studio 2010 as
fail
success
Why this behavior? Could you please explain?
See Question&Answers more detail:os