I am always confused between those two operators, I don’t know what makes
the number lower or larger.
Someone can tell me how to remember what each of those operators does? (Signs, some examples and etc.)
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.
Think of them as arrows that ‘push’ bits up or down the number.
The
<<operator will increase the size of the number by pushing bits up towards the higher value slots in a byte, for example:The
>>operator will decrease the size of the number by pushing bits down towards the lower value slots in a byte, for example: