Original Post
Can anyone tell what is faster, bitwise comparisons or logical comparaisons. For example is, which of the following is faster?
1. int a = 5;
int b = 5;
if ( a && b )
cout << "equal";
2. int a = 10;
if ( a & 0x0000000A )
cout << "equal";
Thanks for any answers.