What do the '&=' and '=&' operators do?

前端 未结 4 1452
抹茶落季
抹茶落季 2021-01-03 23:24

Finding the answer to this is turning out to be much more difficult than I would have thought. Since I don\'t have a clue what you\'d call this, it\'s hard to run a Google s

4条回答
  •  我在风中等你
    2021-01-04 00:16

    &=
    

    is the bitwise "AND" assignment operator. It performs an "AND" on the variable and stores the result. (more information is in Bitwise Operators and more general information is in Bitwise Operations in C ).

    The

    =&
    

    operator is an assignment by reference, which makes the variable point not to the value of the other variable or constant, but rather to that memory location (more information is in What References Are).

提交回复
热议问题