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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…