how to convert hexadecimal unsigned charcter into binary number in c
Answers
Answered by
0
Answer:
the binary number is 1100
Answered by
0
Answer:
I'm trying to convert unsigned chars to their hex ASCII values but in binary form.
For example:
unsigned char C to 0100 0011 (43)
I can get from hex to binary the issue is getting from char to its hex value.
for (n = 0; n < 8; n++){
binary[n] = (letter >> n) & 1;}
I keep getting the wrong values because the letter is going in as its own ASCII value rather than the binary version of the hex ASCII value
Explanation:
pls mark me as brainliest and follow me
Similar questions
India Languages,
2 months ago
Physics,
2 months ago
English,
5 months ago
English,
11 months ago
Math,
11 months ago