dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: curious

  1. #1
    ed Guest

    curious


    what does " x^=y " do?

  2. #2
    Danny Kalev Guest

    Re: curious



    ed wrote:
    >
    > what does " x^=y " do?


    ^ is the bitwise XOR operator, and the ^= assigns the result of XORring
    the bits of y and x to x. In other words, it's identical to
    x=x^y;

    Danny

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center