+ 1
What a char type variable stores ? A character or its ASCII code
When the variable is printed with %d specifier it gives ASCII code but when it is printed with %c specifier it returns character stored https://code.sololearn.com/cVvD3mY0vM7a/?ref=app
1 Réponse
+ 6
All data is stored in binary. Characters are stored in 8 bits. So if you print as a number, the numerical value of those 8 bits are printed. If you print as a character, the number is translated into the character representation.