The type of 0x3F
is int
, just as the type of 63
is int
. The hexadecimal prefix only means the digits are in base-16 instead of base-10.
'?'
is a character literal, of type char
. That is also an integral type. memset
technically wants an int
, but a char
will convert to int
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…