answersLogoWhite

0


Best Answer

1's complement and 2's complement relate to the way negative integers are represented in computer memory. With 1's complement, all the bits are inverted. This results in there being two representations for the value 0 because 00000000 is +0 while 11111111 is -0. But in the real world 0 is neither positive nor negative. To resolve this, 2's complement inverts all the bits and then adds 1 ignoring any overflow, such that 11111111 + 00000001 = 00000000.

With 1's complement, the valid range of integers for an 8-bit value is -127 to +127 but with 2's complement it is -128 to +127 because we eliminate the redundant 0 value.

Most modern systems use 2's complement but there are still systems using 1's complement.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why 1's and 2's compliments is done for performing arithmetic operations?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are the basic operational concepts of computer?

hardware,software and 3rd is data. explain in detail then this question will be completed.


Difference between cnc and vmc?

in cnc we have to change the tool for different operations in vmc automatic change of tool is done


Advantages of FPGA spartan over microcontroller?

FPGA Spartan is more efficient than the microcontroller. It is used to perform operations that cannot be properly done by microcontrollers; operations like high parallel or low latency operation.


How do you Describe the problems that can occur with the wiring and testing operations?

Testing and wiring should be carried out by a qualified , trained technician / engineer so that the electrical devices and wiring are properly done with safety.


What do you mean by Hierarchy in C language?

The preference in which arithematic operations are performed in an arithematic expression is called as Hierarchy of operations.Its very important in C Programming to predefine the Hierarchy of operations to the C compiler in order to solve the given arithematic expression correctly.e.g.: If a programmer wishes to perform ,z=a+b/c;it may beinterpretedas z=(a+b)/c or z=a+(b/c).and if a=3,b=6,c=2 then using the same expression we will obtain two differentanswersas z=4.5 or z=6.To avoid this condition we must be aware of hierarchy of operations used in C programming.In arithematic expressions scanning is always done from left to right.The priority of operations is as shown below,PriorityOperatorsFirstParenthesisos brackets()SecondMultiplication & DivisionThirdAddition & SubtractionFourthAssignment i.e.=If we consider the logical operators used in C language,the operator precedence will be like;OperatorsType!Logical NOT* / %Arithmetic and moulus+ -AritmeticRelational== !=Relational&&Logical ANDLogical OR=AssignmentIn the tables above,the higher the position of an operator,higher is its priority.

Related questions

What does the arithmetic operator do in Excel?

The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)


How the arithmetic operations are done in digital calculator?

Calculators are no different than computers. The tiny chip use binary to come up with the anwer.


What are the operations that are done by Arithmetic and Logic Unit?

The operation of ALU are: addition, multiplication,comparing,complement(subtraction),exclusive OR, increment, decrement, and bit-shifting. Notably, ALUs perform only INTEGER operations, not Floating Point operations.


Does the alu manage all activities inside the motherboard?

No. The Arithmetic Logic Unit hades basic mathematical operations such as addition, subtraction, multiplication, division as well as logical and register operations such as and, or, and bit shifting.


What is the full meaning ALU in computer?

Arithmetic Logic Unit - the place where all operations happen in a computer.Other units are:Memory - data and instructions kept here.Control - coordinates all units according to instructions.Input/Output - moves data and instructions in and out of the computer.


How we use arithmetic operations with pointer?

pointers are used to store address of a variable and arithmatic operations can be easily done but these operations performed onthe address of variabe forex: #include<stdio.h> void main() { int a,*b,c; a=9; b=&a; c=b+1; }


What Compliments beginning with the letter w?

wonderful, well done.


What are the two primary sections located on the CPU?

the units of the CPU are :- ALU (arithmetic and logical unit) CU(control unit) the ALU handles the arthmetic operations being done by the application and the CU is responsible for handling the instruction passed by the micro processor.


What do major computer operations include?

Major operations are three operations: Compiling and processing data done by CPU Graphic Generation and processing done by GPU Arithematic and logic Processing Done by ALU


Why is it important to pay compliments to superior officers?

You do not necessarily need to pay compliments as much as you are to pay respect. This respect is due to their time in service and the recognition of what they have done to gain superior rank.


Can real number arithmetic be done without the use of a coprocessor?

Of course! People were doing real arithmetic long before the first computer!


What are the advantages of arithmetic mean?

It is easy to use in further analysis calculation can be done easily using arithmetic mean is unique value for each data set