Which operator is used to perform a bitwise XOR operation in C?

Which operator is used to perform a bitwise XOR operation in C? Correct Answer ^

In C, the ^ operator is used to perform a bitwise XOR (exclusive OR) operation. It performs a bitwise XOR between corresponding bits of two integers. It returns a new integer where each bit is the result of XORing the corresponding bits of the operands.

Option A (&&) represents the logical AND operator, used for logical comparisons, not bitwise operations.
Option B (||) represents the logical OR operator, used for logical comparisons, not bitwise operations.
Option C (&) represents the bitwise AND operator, used for bitwise AND operations, not bitwise XOR.

Related Questions

In AES, to make the s-box, we apply the transformation b’_i = b_i XOR b_(i+4) XOR b(i+5) XOR b_(i+6) XOR b_(i+7) XOR c_i What is c_i in this transformation?
In AES, to make the s-box, we apply the transformation – b’i = bi XOR b(i+4) XOR b(i+5) XOR b(i+6) XOR b(i+7) XOR ci What is ci in this transformation?
The inverse s-box permutation follows, b’_i = b_(i+2) XOR b(i+5) XOR b_(i+7) XOR d_i Here d_i is
The inverse s-box permutation follows, b’i = b(i+2) XOR b(i+5) XOR b(i+7) XOR di Here di is –