十六进制整型常量有符号吗?

2025-04-13 19:33:50
推荐回答(1个)
回答(1):

有。

int a = -0xFFFF;    //-65535
const int b = -0x1; //-1