Appendix B: | Read Specifications |
The following is a representative list of the specifications that are used in C's
scanf
statements:
Specification | Argument type | What is read | ||||
%hi | short | integer | ||||
%i | int | integer | ||||
%f | float | floating-point number | ||||
%lf | double | floating-point number | ||||
%c | int | characters | ||||
%s | char pointer | string | ||||