#include<stdio.h>
int main()
{
int a = 322;
char b;
b = a;
printf("%c\n",b);
return 0;
}
You can see that the result is B.
We convert 322 to hexadecimal, and the
result is 142. But char only supports two hexadecimal numbers, and the highest 1 will be castrated,
so the result of 42 compared to the ascii code table is B