我目前正在学习printflibc 的功能,但我不了解,两者之间有什么区别:
printf
printf("Test : %010d", 10);
使用0标志和10宽度说明符
0
10
和
printf("Test : %.10d", 10);
采用10精密符
产生相同的输出: Test : 0000000010
Test : 0000000010
c printf libc
c ×1
libc ×1
printf ×1