wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In digital computer, ..............is used to represent negative numbers.

A
1's complement
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
2's complement
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Both 1 and 2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Both 1 and 2

In digital computer, 1's complement and 2's complement is used to represent negative numbers.

1's complement:-

The ones' complement of a binary number is defined as the value obtained by inverting all the bits in the binary representation of the number. The ones' complement of the number then behaves like the negative of the original number in some arithmetic operations.

2's complement:-

2's complementmakes sense because it can be used in natural addition and subtraction arithmetic without any need to change the bits. Two's complement is the way most computers represent positive or negative integers. To get the two's complement negative notation of an integer, you write out the number in binary.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Colour Math
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon