Hi,

I am trying to learn C++ and I don't know how to use bitmasks properly.


if( u & integer == 0 ) return 0;
else return 1;

I think I don't understand what the bitmask is actually doing. Can someone explain what this code is doing?

Thanks.