Z
Z
ZakkMalin2019-07-18 18:58:37
Programming
ZakkMalin, 2019-07-18 18:58:37

What happens when "overflow"?

When, for example, there is not enough memory - is the last bit thrown away?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Skusnov, 2019-07-18
@ZakkMalin

If we add 1 to the maximum integer, then the most significant bit (binary 1) will be discarded , the lower ones will be displayed correctly (in our case, zeros) and the "overflow error" processor flag will be set.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question