What is the output? | Sololearn: Learn to code for FREE!
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

8th Jun 2020, 1:52 PM
M LOKESH
M LOKESH - avatar
2 Answers
+ 3
0011 -> 3 in binary 0101 -> 5 in binary -------- 0111 -> 7 in binary This is a bitwise OR operation.
8th Jun 2020, 3:45 PM
Avinesh
Avinesh - avatar
+ 2
Print(3|5) >>>7 :/
8th Jun 2020, 2:17 PM
Amiran Bogomol
Amiran Bogomol - avatar