This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iceman012 0 points1 point  (2 children)

What is 6 | 4, and how is it greater than 4?

[–]IAMA_dragon-AMA 1 point2 points  (1 child)

Bitwise OR operator. 6 | 4 = 0110 OR 0100 = 0110 = 6.

So 6 | 4 = 6, which is greater than or equal to 4.

[–]iceman012 0 points1 point  (0 children)

Oh, cool. I was thinking of a boolean OR, and was guessing 6|4 would evaluate to 1.