How to convert int to char c - Stack Overflow
In response to your edit, just use printf and specify an integer: int i = 10; printf("%d", i); The reason for this is 0 represents the number 0. The ASCII character "0" is not at zero, but at 48. This is why Jared's Answer will work: char dig = (char)(((i...