i have an int. it's value is 10 for instance. i need to convert that to a char. so i use the code:
char mychar = (char) intname;
now i need to append mychar to the end of another char but it doesn't work.
could somebody help me?
Printable View
i have an int. it's value is 10 for instance. i need to convert that to a char. so i use the code:
char mychar = (char) intname;
now i need to append mychar to the end of another char but it doesn't work.
could somebody help me?
Why not look up itoa? its prototype is:
num is the number you want to convert, buffer is where your store the result, and radix is the numbers base, e.g. 2 Binary, 8 Octal, 10 Decimal, 16 HexadecimalCode:char* itoa(int num, char* buffer, int radix);