?C???,printf
????????????????????????????????????printf
???????:
int printf(const char *format, ...);
??????format
????????,?????????????????????????????,?????????????????????????????:
%d
:??????????:printf("%d", 123);
???123
?%c
:???????:printf("%c", 'A');
???A
?%s
:????????:printf("%s", "Hello, World!");
???Hello, World!
?%f
:????????:printf("%f", 3.14159);
???3.141590
(????6???)?%e
:????????????????:printf("%e", 3.14159);
???3.141590e+00
?%x
:???????????:printf("%x", 255);
???ff
?%o
:??????????:printf("%o", 123);
???173
?\u
:?????????????:printf("\u", 4294967295);
???4294967295
?
???????????????????,??????????????:printf("]", 123);
????????5??????,????5?,?????????
??,printf
???????????,?????????????????????????????????C??????printf
?????