New course! Every coder should learn Generative AI!
Try a free lesson- 1
What is the output?
Print(3|5) a.3 b.5 c.7 d.operation failed
2 Answers
+ 3
0011 -> 3 in binary
0101 -> 5 in binary
--------
0111 -> 7 in binary
This is a bitwise OR operation.
+ 2
Print(3|5)
>>>7
:/