I am wondering how costly is to combine logical operators? What is the best way to combine them?
For example: What is the difference between following two statements in terms of optimization?
1) if((!x || !y || !z) && (a != b))
2) if(!( x && y && z) && (a != b))
I heard from my peers that you should use ANDing operation more often than ORing operation. I am new to C language. Please someone help me to understand this. Any material or link would also be helpful.