The translation is done at compile time, so each line that you manually enter into the source code with \x, ends up being a character that it represents in binary format. If you want to do this at runtime, you will need to call a parsing function, for example strtol(), using base 16, passing a string containing hexadecimal code, and sending it to char.
source
share