lylarock lylarock
  • 07-09-2021
  • Computers and Technology
contestada

A computer program uses 4 bits to represent integers when the program adds the decimal numbers 5 and 11 the result is 0 why?

Respuesta :

tonb
tonb tonb
  • 07-09-2021

Answer:

Because the answer would be 16 which is 10000 in binary, and the 1 drops off because there are only 4 bits for the answer.

Explanation:

All calculations will be modulo 2^bits.

So 4 bit storage: calculations modulo 2^4=16

16 modulo 16 is 0.

17 modulo 16 is 1. etc., it wraps around after 15.

Answer Link

Otras preguntas

What element in the room does the narrator of "The Yellow Wallpaper" focus on through much of the story? A. The locks on the door B. The pattern of the wallpape
4. He is a(n) _______ person, so he has an ability to choose a convenient flat near the centre of the city to live in. A. reasonable B. suitable C. wealthy D.
Electron A is fired horizontally with speed 1.00 Mm/s into a region where a vertical magnetic field exists. Electron B is fired along the same path with speed 2
SI units are used for scientific works.Why?​
HELP MEEE THIS IS 38 points because I need help wit 3 questions ❣️
Can someone help me on this please
What is an equation of the line that passes through the points (-2,8) and (1, -1)? ​
How can you keep yourself away from such social problems ?Mention any four aways answer.​
Explain moment of inertia​
Find the eigenvalues of the matrix: [-43 0 80] [40 -3 80] [24 0 45]