I want to know when I do 4<<2, what exactly happens underneath?? are there any multiplications performed or how is the value computed. if you have a reference to the implementation of shift operators please reply me. Thanks in advance
Share
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.
Normally this is a processor instruction (directly done on the processor).
It simply does shift the bits in memory:
If you are looking for insight on how processors work in a very low level, Code by Charles Petzold is a fantastic book to read.