Apr-03-2024, 02:51 PM
(This post was last modified: Apr-03-2024, 02:51 PM by deanhystad.)
It is doing a bitwise and. Looking at the bits in the two values and creating a new value that is only the bits that are set in both. Do you understand binary numbers?
Output:int 1 = binary b0001
int 5 = binary b0101
1 & 5 = binary b0001 = 1