binary - Why 0A0B0C0D is a 32-bit word/number? -


when discussing endian, instructor gave word 0a0b0c0d in hexadecimal, , why 32-bit word?

thanks.

preamble:

what answer have been had instructor given 000000000a0b0c0dh ?
well, answers provided @ergonaut , @kdbanman yield 64-bits.

your question:

why 32-bit word?

the value instructor gave not have 32-bit. considerd 64-bit, 128-bit, or else starting @ 28-bit matter.

what important here the position of significant digit.
find out translate hexadecimal value 0a0b0c0dh binary equivalent 0000'1010'0000'1011'0000'1100'0000'1101b , note 1 left occupies 28th position. remember bit numbering starts right!
since 28 bits won't fit in 16-bit word, choose next higher format 32-bit.

applying logic value in preamble lead 32-bit number correct answer. when classifying numbers don't consider leading zeroes!


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -