CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Symbol ~

  1. #1
    Join Date
    Jul 2009
    Posts
    154

    Symbol ~

    What does it do?


    Code:
    ~x

    Sorry google won't let me search for symbols

  2. #2
    Join Date
    Jun 2011
    Posts
    6

    Re: Symbol ~

    It's bitwise NOT operator

  3. #3
    Join Date
    Jun 2011
    Posts
    6

    Re: Symbol ~

    yeah, and it changes all bits of variable x from 0 to 1, and from 1 to 0.
    E.g.
    if x = 0b0010
    after ~x is 0b1101

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured