Swift: Advanced operator – bitwise AND operator

Swift provides bitwise AND ( & ) operator. The AND operator combines the bits of two numbers and returns a new number with bits set to 1 only when both the bits in those numbers are equal to one.

Leave a Reply