How a negative integer is stored.

C Programming Language >   Data Types in C Language >   Introduction to Data Types in C  

Short Question

1214


Answer:

Get the two-S compliment of the same positive integer. Eg: 1011 (-5)

Step-A − One-S compliment of 5 : 1010

Step-B − Add 1 to above, giving 1011, which is -5


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.