How to Left Shift 24 bits

How can I left shift an integer 24 bits?
How can I left shift an integer 8 bits?
furyAsked:
Who is Participating?
 
msimanCommented:
for 24, multiple the number with 2^24=16777216
for 8 multiple it by 256=2^8

i.e. to shift by x bits, multiple by 2^x ok?

0
 
furyAuthor Commented:
I thought about this, just not sure..Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.