What is this operator: &=

前端 未结 6 935
暖寄归人
暖寄归人 2021-01-21 16:16

Can someone explain what is the operator &= for?

I searched, but I got only results with & or =.

6条回答
  •  长情又很酷
    2021-01-21 16:36

    In C#(and in most languages I think) its the bitwise assigment operator.

    a &= b is equivalent of a = a & b

    http://msdn.microsoft.com/en-us/library/e669ax02.aspx

提交回复
热议问题