What about them can't you understand?
> PORTB & 0xF0
Preserves the top 4 bits, and clears the bottom 4 bits.
The two operations on c get the top 4 bits and bottom 4 bits into position read to add (using |) to the existing portb value.
What about them can't you understand?
> PORTB & 0xF0
Preserves the top 4 bits, and clears the bottom 4 bits.
The two operations on c get the top 4 bits and bottom 4 bits into position read to add (using |) to the existing portb value.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.