Talking City



Go Back   Talking City > Coding and Programming > Other Languages
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-26-2016, 05:27 PM
aarohi aarohi is offline
Member
 
Join Date: May 2015
Posts: 71
aarohi is on a distinguished road
Default C

How a negative integer is stored in C language??

Reply With Quote
  #2  
Old 10-27-2016, 04:24 PM
priya.sharma priya.sharma is offline
Senior Member
 
Join Date: Aug 2016
Posts: 100
priya.sharma is on a distinguished road
Default

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

Step-1 − One’s compliment of 5 : 1010

Step-2 − Add 1 to above, giving 1011, which is -5
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +5.5. The time now is 03:25 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Talking City Managed by Megrisoft