题解 | #缩短二进制#
缩短二进制
https://www.nowcoder.com/practice/4ffcc9f206b949ddb057ee0099b34d51
#include <stdio.h> int main() { int a = 1234; printf("0%o ", a);//手动加前导字符,02322 printf("0X%X\n", a);//0X4D2;%x是小写,%X是大写 // printf("%#o ", a);//通过#,加前导字符:02322 // printf("%#X\n", a);//0X4D2 return 0; }