Similarly, if you want to set the bit at position 6 to 1, you can use a bitwise OR (|) operator. The following complicated expression is based on the compound assignment operator |=:
Similarly, if you want to set the bit at position 6 to 1, you can use a bitwise OR (|) operator. The following complicated expression is based on the compound assignment operator |=:
Tương tự như vậy, nếu bạn muốn thiết lập các bit ở vị trí 6-1, bạn có thể sử dụng toán tử OR | operator (). Các biểu hiện phức tạp sau đây dựa trên toán tử gán phức hợp | =: