in reply to Bit operations for beginners
You may be surprised that it is not the "!" operator, which is more known as the "not" operator, but that is because "~" is the "bitwise not" operator.
The "!" operator is used to reverse a true value to false and not actually looking at the specific bits.
I would change 'which is more known as' to 'which is more commonly known as'. I would change 'The "!" operator is used to reverse a true value to false' to 'The "!" operator is used to flip flop the truth of a value from true to false or false to true'.
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Bit operations for beginners
by mpd (Monk) on Aug 09, 2003 at 02:08 UTC |