Since you're assigning an int
value to a char
, the value is converted in an implementation-defined way to be in the range of a char
(most likely, the low order byte of num
will be the value which is assigned).
The fact that you're dereferencing a char *
to assign to a char
doesn't change this. It would be the same as if you did a = num;
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…