C++ int to char*

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

Also in C++: