Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Two's compliment of -5

Answer Posted / vignesh1988i

first write the given number in it's binary format.
am considering only 8 bit at a time ,
5- 0000 0101
step 1: convert this binary format to one's compliment (ie)
change 0 to 1 and 1 to 0.
1111 1010

step 2: add 1 to the above binary format.

1111 1010
1
-----------
1111 1011

so this binary format will get stored in memory and the sign
bit will be set to 1.

always the negative number will be stored only in 2's
compliment..........


thank u

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between union and structure in c?

1091


What is the difference between class and object in c?

1097


What is the difference between c &c++?

1097


i got 75% in all semester am i eligible for your company

2176


What is void main () in c?

1158


What are the functions to open and close file in c language?

1133


Are comments included during the compilation stage and placed in the EXE file as well?

1031


largest Of three Number using without if condition?

1533


Explain the difference between structs and unions in c?

965


What is use of pointer?

1015


What is the significance of an algorithm to C programming?

1001


What is "Hungarian Notation"?

1044


Why functions are used in c?

1077


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1461


How can I automatically locate a programs configuration files in the same directory as the executable?

1106