OP tagged C++ so here goes..
std::stringstream ss;
ss << f1;
std::string s = ss.str();
ptr = s.c_str();
3
solved How to convert float to string using single char pointer? [closed]
OP tagged C++ so here goes..
std::stringstream ss;
ss << f1;
std::string s = ss.str();
ptr = s.c_str();
3
solved How to convert float to string using single char pointer? [closed]