Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么这一行打印 17 而不是 3?
printf("%d" ,0x11);
0x11是十六进制(以 16 为底)数,并且11( hexadecimal ) 等于17 (decimal )。
0x11
11
17
因为0x引入了十六进制文字,而不是二进制文字。
0x