Swift: Advanced operator – bitwise OR operator

Swift provides bitwise OR ( | ) operator. The OR operator returns a new number with bits set to 1 only when either of the bits present in the two numbers is equal to 1.

 

Leave a Reply