დირექტორიაში არის c კოდი, რომელიც ორ რიცხვზე თითოეულს გააკეთებს. ეს სია და კოდი აღებულია ამ გვერდიდან, და დაინტერესებულებისთვის არის უფრო მეტი დეტალები და მაგალითები.
&
(bitwise AND) takes two numbers as operands and does AND on every bit of two numbers. The result of AND is 1 only if both bits are 1.|
(bitwise OR) takes two numbers as operands and does OR on every bit of two numbers. The result of OR is 1 if any of the two bits is 1.^
(bitwise XOR) takes two numbers as operands and does XOR on every bit of two numbers. The result of XOR is 1 if the two bits are different.<<
(left shift) takes two numbers, left shifts the bits of the first operand, the second operand decides the number of places to shift.>>
(right shift) takes two numbers, right shifts the bits of the first operand, the second operand decides the number of places to shift.~
(bitwise NOT) takes one number and inverts all bits of it