Welcome to Westonci.ca, where your questions are met with accurate answers from a community of experts and enthusiasts. Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

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

Sagot :

tonb

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.