Specifically, what does the ($c1 & 0x03) << 4 do?
Is 0x03 hex notation?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It does mean first operation do logically AND with HEX value 0x03(that is 3 in HEX or (0011) in Binary).and then left Shift 4 places.example
let u have $c = 34.
then first it performs $c & 3 which is (100010 BITWISE AND 000011) which Gives you (000010)
and then It shifts 4 digit on left position and restore new value in $c i.e (100000) or 32 in decimal.
Hope it is Helpful.
Thanks