This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

char to hex value

Hello,
I have a little problem displaying a char to an hex value.

char t;
t = 0x01;
printf("%x",t);
This code outputs 100 where I expected to get 1... Am I doing something wrong ?

0