페이지 정보작성자 master 작성일2018-02-05 23:42 조회536회 댓글0건
The Type field can be any of:
Prints a literal
%character (this type doesn't accept any flags, width, precision, length fields).
intas a signed decimal number.
%iare synonymous for output, but are different when used with
scanf()for input (where using
%iwill interpret a number as hexadecimal if it's preceded by
0x, and octal if it's preceded by
doublein normal (fixed-point) notation.
Fonly differs in how the strings for an infinite number or NaN are printed (
doublevalue in standard form ([
Econversion uses the letter
e) to introduce the exponent. The exponent always contains at least two digits; if the value is zero, the exponent is
00. In Windows, the exponent contains three digits by default, e.g.
1.5e002, but this can be altered by Microsoft-specific
doublein either normal or exponential notation, whichever is more appropriate for its magnitude.
guses lower-case letters,
Guses upper-case letters. This type differs slightly from fixed-point notation in that insignificant zeroes to the right of the decimal point are not included. Also, the decimal point is not included on whole numbers.
unsigned intas a hexadecimal number.
xuses lower-case letters and
unsigned intin octal.
void *(pointer to void) in an implementation-defined format.
doublein hexadecimal notation, starting with
auses lower-case letters,
Auses upper-case letters. (C++11 iostreams have a
hexfloatthat works the same).
Print nothing, but writes the number of characters successfully written so far into an integer pointer parameter.
Java: indicates a platform neutral newline/carriage return.
Note: This can be utilized in Uncontrolled format string exploits.
등록된 댓글이 없습니다.