English, asked by mokalpooja380, 5 months ago

how to convert hexadecimal unsigned charcter into binary number in c​

Answers

Answered by Anonymous
0

Answer:

the binary number is 1100

Answered by subham7190
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