How i convert char array to HEX

Output comes from the Array.

Until now unable to understand; how i use your code?
how this code converts my char array value into HEX??

Sorry for my poor understanding...