Sol3_4.cpp (Ex3_04 p.157)
I don't understand this solution. The combining of the values with '&' gives me different results.
e.g.: (mode & write) = (0001 0001) & (0010 0000) = (0000 0000)
(mode & binary) = (0001 0001) & (0000 0010) = (0000 0000)
Can anybody explain me what I'm doing wrong?
|