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...


How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal)



How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to ..

Answer / vignesh1988i

let us take a binary number.. say :

0000000110101110 (16 bit number)
we already know it's the consersion to HEXA DECIMAL equivalent.... so split the numbers into 4 bits each... like,

0000 0001 1010 1110 (16 bit number)

and for converting directly there is a conversion called 8421 code...

8421 | 8421 | 8421 | 8421
0000 | 0001 | 1010 | 1110

now in the first pass it is zero (from left to right) , second it is 1 , in third it is 10 (A in hexa.) , in fourth it is 14 (E in hexa.)


thus the final representation for the above binary is : 1AE


thank u

Is This Answer Correct ?    12 Yes 4 No

Post New Answer

More C Interview Questions

how to print this pyramid * * * * * * * * * * * * *

2 Answers  


code for concatination of 2 strings with out using library functions?

3 Answers  


what does exit() do?

3 Answers   Cadence,


Describe wild pointers in c?

0 Answers  


what are the interview question's in the language c

2 Answers   Nipuna,


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

0 Answers  


What is pointer & why it is used?

0 Answers  


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

0 Answers  


who invented c

13 Answers   IBM,


What is the difference between typeof(foo) and myFoo.GetType()?

2 Answers   Synergy,


What is call by value in c?

0 Answers  


What is the right type to use for boolean values in c?

0 Answers  


Categories