scanf()
and printf()
are C standard library’s functions
Format
scanf("format-specifiers", address-table)
printf("format-specifiers", variables)
Parameters/Format specifiers
scanf
‘s specifier portotype:
[%][width][length][specifier]
Specifier | Description | Notice |
---|---|---|
i |
Integer | + - 0 (oct) 0x (hex) |
d oru |
Decimal | + - |
o |
Octal | + - |
x |
Hexdecimal | + - |
近期评论