Wednesday, 18 September 2013

Bitwise operations vs. logical operations in C++

Bitwise operations vs. logical operations in C++

In C++ are the following statements when comparing two integer values for
equality the same? If not, why?
if(a == b) ...do
if(!(a ^ b)) ...do

No comments:

Post a Comment