I am recently reading The C Programming Language by Kernighan.

There is an example which defined a variable as int type but using `getchar()` to store in it.

```
int x;
x = getchar();

```

Why we can store a `char` data as a `int` variable?
The only thing that I can think about is ASCII and UNICODE.
Am I right?