Thread: ~ symbol

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    23

    ~ symbol

    hi,

    I am just trying to find out what the ~ does,

    e.g.
    number = (number + 3) & ~3;

    any help?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    In the principle of "Give a man a fish, and he will ask for another the next day, teach a man to fish, and he will not need to ask for another fish", I'll give you a link for ALL C and C++ operators:
    http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B

    The one you are looking for is in the second section in the big table.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    23
    thanks a lot, that is what i need,much appreciated

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM
  5. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM