我正在用C编写程序,我有几个用于调试的printf语句.有没有办法改变printf上HEX输出的精度?例.我有0xFFF但我希望它打印出0x0FFF.
c formatting printf
c ×1
formatting ×1
printf ×1