printf , *format. :
int printf(const char *format [, arg,...]); format - , : ( %), , %.
:
%[] [] [.] [] []
: , ; : ;: max ;
: . :
% (%), %c , %s NULL; .
%d ; int ( i), %i ; ( d); %o ; %u ; %x ( abcdef > 9); %X ( ABCDEF > 9); %f [-]9999.9999; ; %e [-]9.9999e[+|-]999; %E , e, E ; %g f e, - ; %G , g, E ; ; %p
.
:
%[-] [+] [] [0] [] ] [.] [h|l] {d|i}
-: ( - )
:
:
[.]: ,
h: short
l: long
d i:
.
%[-] [0] [] [.] [h|l] [s]
.
%[-] [#] [+|] [0] [] [.] [L|l] {f|e |E |g|G}
()
.
:
%[-] [+] [] [0] [] ] [.] [h|l] {d|i}
-: ( - )
:
:
[.]: ,
h: short
l: long
d i:
:
%[-] [0] [] [.] [h|l] [s]
.
%[-] [#] [+|] [0] [] [.] [L|l] {f|e |E |g|G}
|
|
scanf , *format. :
int scanf(const char *format [, arg,...]);
scanf , *format.
. (&)
scanf p y pp.
scanf , . , , .
format - , : , % .
:
%[*] [] [] []
- : .
- : .
- * , .
<stdlib.h> , , , , .
Abs -
bsearch -
qsort -