Problems with Not
Posted: 13 Nov 2007, 06:16
I am compiling in Visual Studios C++ Version 6 and have noticed a problem with the not command. It only reverses the significant digits. Is there a way to make the compiler reverse all digits?
I am currently using a effective work around. I have a constant that has all the digits set to one, and I XOR the variable with the constant. I would prefer to use the unary operator however.
I am currently using a effective work around. I have a constant that has all the digits set to one, and I XOR the variable with the constant. I would prefer to use the unary operator however.