A char will convert the integer to corresponding value based on ASCII value, So if you assign a value of 48 to a char it will store 0 since,48 is the ASCII value of 0.Correspondingly you add the ASCII value of 0 to any integer you need to convert to char