C语言打印16进制出现0xffffff现象的问题剖析! 其实类似的问题不是只在网络程序中才会出现的,看示例代码: 复制代码 1 #include 2 int main() 3 { 4 char c = 0xc9; 5 printf("A:c = %2x\n",(unsigned char)c); 6 printf("B:c = %2x\n",c & 0 LINUX编程 2023-12-19 37 点赞 0 评论 56 浏览