x
indicates a hexadecimal character escape. It's used to specify characters that aren't typeable (like a null 'x00'
).
And "xebx2a"
is a literal string (type is char *
, 3 bytes, null-terminated), and 'xebx2a'
is a character constant (type is int
, 2 bytes, not null-terminated, and is just another way to write 0xEB2A or 60202 or 0165452). Not the same :)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…