What Does The XOR Operator Do?

Python

What does the ^ (XOR) operator do and also how it performs?


If you want to unleash your potential in this competitive field, please visit the Python course page for more information, where you can find the Python tutorials and Python frequently asked interview questions and answers as well.

2
Answers

Replies

The XOR Operator will generate 1 when it is applied on two different bits 0 and 1.  The result will be 0 if it is applied on the same bits 0 and 0 or 1 and 1.

 

The XOR Operator will generate 1 when it is applied on two different bits 0 and 1.  The result will be 0 if it is applied on the same bits 0 and 0 or 1 and 1.

 
 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
WhatsApp
To Top