Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This is a bitwise (bitwise) inclusive OR | .
a = 15 | 9; // 15 т.к. 1111 | 1001 = 1111
b = 8 | 10; // 10 т.к 1000 | 1010 = 1010
b = 10 | 13; // 15 т.к. 1010 | 1101 = 1111
a = 15 ^ 9; // 6 т.к. 1111 ^ 1001 = 0110
b = 8 ^ 10; // 2 т.к 1000 ^ 1010 = 0010
b = 10 ^ 13; // 7 т.к. 1010 ^ 1101 = 0111
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question