NOT Operations with Bitwise

This is a discussion on NOT Operations with Bitwise within the C++ Programming forums, part of the General Programming Boards category; I fully understand that 0110 & 0011 == 0010 but I still cant understand the NOT bitwise operations. example ~0110 ...

  1. #1
    Registered User Daftatt's Avatar
    Join Date
    May 2011
    Location
    Colville, Washington
    Posts
    2

    Question NOT Operations with Bitwise

    I fully understand that 0110 & 0011 == 0010

    but I still cant understand the NOT bitwise operations.

    example

    ~0110 == 1001

    can someone please explain this to me like I am a moron, which I just might be because this should be really simple.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    If it's NOT 0, then it must be 1. If it's NOT 1, then it must be 0.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bitwise Operations
    By drkidd22 in forum C Programming
    Replies: 2
    Last Post: 11-12-2009, 10:09 PM
  2. Bitwise Operations are getting me mad.
    By pajaro in forum C Programming
    Replies: 3
    Last Post: 05-29-2009, 07:05 AM
  3. bitwise operations
    By barneygumble742 in forum C Programming
    Replies: 10
    Last Post: 09-11-2004, 10:33 AM
  4. bitwise operations
    By andrew_tucker in forum C Programming
    Replies: 2
    Last Post: 11-27-2002, 11:46 PM
  5. bitwise operations in C
    By samps005 in forum C Programming
    Replies: 5
    Last Post: 10-10-2002, 03:35 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21