A computer represents information in groups of 64 bits. How many different integers can be represented in BCD code?

StackOverflow https://stackoverflow.com/questions/9189420

  •  27-04-2021
  •  | 
  •  

문제

This from my Interview-MCQ module:

A computer represents information in groups of 64 bits. How many different integers can be represented in BCD code?

The given answer is 1016, however no explanation is provided, I was just wondering if somebody could help me understand the answer.

도움이 되었습니까?

해결책

BCD is binary coded decimal. In BCD, every 4 bits is used to represent a single digit from 0 to 9. So if you have 64 bits, that gives you 64/4 = 16 decimal digits, which means you can have 10^16 different integers.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top