In C++, when converting an int number into a string.
In ASCII character codes, 0-9 are ordered. "0" is 48, "1" is 49 and "9" is 57. So when converting an int from 0 to 9 into characters, adding' 0' is just its ASCII character code. If not, then: int n = 6;; char c = n; So c represents a character with a value of 6 in the ASCII code table instead of' 6' (ASCII value 54).