on addition of -46 and +28 using 2's compliment we get
Answers
Answer:
-46+48= -18
Step-by-step explanation:
What is 2's complement,
Two's complement is a mathematical operation on binary numbers, and is an example of a radix complement. It is used in computing as a method of signed number representation. The two's complement of an N-bit number is defined as its complement with respect to 2ᴺ; the sum of a number and its two's complement is 2ᴺ
For more help you can watch YouTube videos on internet.
If it helps then follow me.
Answer:
The required answer is : 00010010
Step-by-step explanation:
If we perform addition of -46 + 28 we get, the value is -18 in decimal equivalent.
So, converting 18 into binary system we get the equivalent (in 8 bits)
= 11101110
Then in order to find the 2's complement,
we first need to convert the given binary equivalent to one's complement
and then add one to the resulting solution to obtain the 2's complement.
For getting 1's complement, we swap the digits one and zero by changing the ones into zero and then from zero to one.
So, 11101110 will be converted to 00010001 (one's complement)
then add 1, we get = 00010001 + 1 = 00010010
Therefore, the required answer is : 00010010
#SPJ3