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

why are lungs divided into very small sac like structures
Why evaporation are called surface phenomenon?
how is the resistor of a 40v lamp higher then the resistor of a 60v lamp?
where does current flows maximum in? series connection or parallel connection?
define circular motion and give some examples.
How long does it take to change a flat plain into mountains?
where does current flows maximum in? series connection or parallel connection?
what is abdominal cavity?
Name the component of food whose digestion produce nitrogenous waste.
Q:How is hemoglobin associated with respiration?Explain.