To my understanding a char is a single character, that is a letter, a digit, a punctuation mark, a tab, a space or something similar. And therefore when I do:
Number 1 is ASCII code 49. The compiler is doing the only sensible thing it can do with your request, and typecasting to int.