English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-08-12 04:38:26 · 4 answers · asked by Sachin B 2 in Computers & Internet Programming & Design

Give it in as simplest possible form.

2006-08-12 04:54:11 · update #1

4 answers

You can use a look-up table for the characters 0 to 9 and A to F
0 = 0000
1 = 0001
2 = 0010
...
D = 1101
E = 1110
F = 1111
Split your hex value into each character, get the corresponding binary value as a string, concatenate the strings together in the same order.
(but there is probably a routine in maths that converts Hex into Bin already. Check there first!)

2006-08-12 04:50:30 · answer #1 · answered by just "JR" 7 · 1 0

The word "binary" is ambiguous right here. novices are frequently doubtful of their use of the words hexadecimal and binary. Do you advise binary as in records that the pc can use or do you advise binary text textile that individuals can understand. be conscious that for the duration of this question, the hexadecimal is text textile records that individuals use. in line with risk you need to use strtoul or an analogous functionality.

2016-12-14 04:46:37 · answer #2 · answered by ? 3 · 0 0

It's not very difficult to implement. Check out this thread:
http://forums.devshed.com/c-programming-42/converting-hex-to-binary-and-storing-in-nybble-299421.html

2006-08-12 04:48:54 · answer #3 · answered by RatherTallFella 4 · 0 0

Can you or will I? I dunno. I can. it's not hard. Or are you asking for something that does this? I'm sure it exists.

2006-08-12 04:44:20 · answer #4 · answered by Tido 2 · 0 1

fedest.com, questions and answers