- string to int
atoi( str.c_str() )
std::stoi( str ) c++11 - int to string
string s = string(itoa(a));
std::string s = std::to_string(a); c++11 - char to int
int ia = a - ‘0’; - int to char
char c = (char)i; i 0-256 - char* to int
int atoi(const char *nptr);
char* buffer = [3];//... allocate a buffer ...
int value = 970;
sprintf(buffer, "%d", value);
- int to char*
char*itoa(int value,char*string,int radix);
int myint;
char buf[SIZE];
sprintf(buf, "my data is %d", myint);