Answers for "how do i convert an int to a char in c ++?"

C
3

C++ int to char*

std::string s = std::to_string(number);
char const *pchar = s.c_str();  //use char const* as target type
Posted by: Guest on April-22-2020
0

How to turn an integer variable into a char c++

char aChar = '0' + i;
Posted by: Guest on August-12-2021

Code answers related to "how do i convert an int to a char in c ++?"

Code answers related to "C"

Browse Popular Code Answers by Language