How do you write 2- as a signed integer?

1 answer

Answer

1050256

2026-04-23 15:21

+ Follow

To write -2 as a signed integer, you simply represent it as -2. In binary, using two's complement notation (which is commonly used for signed integers), you first convert the positive version, 2, to binary (which is 10 in binary for a 2-bit representation). Then, to represent -2, you invert the bits and add 1, resulting in its two's complement representation. For example, in an 8-bit system, -2 is represented as 11111110.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.