I use the following codes to illustrate my question:
if( a== 0)
{
if(b==0)
{
if(c == 0)
{
//
}
}
}
vs
if((a==0)&&(b==0)&&(c==0))
{
}
The first code fragment is the same with the second on when it comes from functionalities. The second one is more concise and easy to understand. I just wondering after code compilation whether both code fragments perform the same. Will the second runs faster? Here, we assume there are many comparions. For example
if((a==0)&&....(y==0)&&(z==0))
{
}