Check out example codes for "convert ascii char value to hexadecimal c++". It will help you in understanding the concepts better.

Code Example 1

#include <sstream>
std::stringstream sstream;
sstream << std::hex << (my_char - 0);
std::string result = sstream.str(); 
// result = hexadecimal string value of the ascii value of my_char

Learn ReactJs, React Native from akashmittal.com