How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal)
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 |
what is difference between #include<stdio.h> and #include"stdio.h"
What is the mean of function?
Explain how do you search data in a data file using random access method?
What is table lookup in c?
Which weighs more, a gram of feathers or a gram of gold?
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.
main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above
What is the time and space complexities of merge sort and when is it preferred over quick sort?
to find the closest pair
how to determine the complexity of an algorithm as log(n)
what r the cpu registers r ther?
write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..