简体   繁体   中英

What does the '=|' operator do?

I googled but it doesn't return the results related to expression. I am guessing it has something to do with bits. What exactly does =| do?

Look at this

http://www.tutorialspoint.com/cprogramming/c_operators.htm

So

  |   inclusive bitwise OR
  =   assignment
  |=  bitwise inclusive OR and assignment 
  =|  syntax error

As for |=

  a |= b;

equals to

  a = a | b;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM