Dear all:
There was a question as below in my interview, could you please help to have a look how to achieve it? thanks a lot!
Question: How to convert the char variable with 2 bytes into HEX variable with 1 byte? (The input characters is just '0123456789ABCDEF'), for exeample, input is 'AB' and the output is X'AB'.