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

If graphs have a linear equations in a system are concurrent having the same slope and the same y-intercept what does that mean about possible solutions
suspence story in 200 words
Narrative writing on I couldn't believe my eyes
What can you grab from an object's library to reuse in a new project?A. TexturesB. VerticesC. KeyframesD. Modes​
Given that the world was at war, how were the central powers defeated?​
Transform the polar equation to a Cartesian (rectangular) equation: r= 4sinθoptions include: x^2+y^2 = 4yx^2+y^2 = -4x^2+y^2 = 4x^2+y^2 = -4y
convert 407 in base 8 to decimal​
please help me i offered all my points and this is really important!!! The question is attached.
is 11-2x the same as 2x-11
Write True or False for the following statements. Rewrite the false statements in correct forms. a) A pitcher plant is a primary consumer. b) A tick that surviv
good job