I've been working trying to read some C code and I've found some operators that I don't know:
What's the use of "&=" and "|=" operators when used for microprocessors programming?
|
I've been working trying to read some C code and I've found some operators that I don't know: What's the use of "&=" and "|=" operators when used for microprocessors programming? |
|||||||||||||
|
|
These statements are equivalent:
It means to perform a bitwise operation with the values on the left and right-hand side, and then assign the result to the variable on the left, so a bit of a short form. If you're not familiar with bitwise operations, I suggest you start getting familiar with those first - the Hope that helps! |
|||||
|
|
|
|||||||||
|