Check out example codes for "C++ int to char*". It will help you in understanding the concepts better.

Code Example 1

std::string s = std::to_string(number);
char const *pchar = s.c_str();  //use char const* as target type

Learn ReactJs, React Native from akashmittal.com