![]() |
![]() |
![]() |
![]() |
![]() |
|
Appendix A: | Print Specifications |
The following is a representative list of the specifications that are used in C's
printf statements:
| Specification | Argument type | What is displayed | ||||
| %i | int | integer | ||||
| %c | int | character | ||||
| %s | char pointer | string | ||||
| %f | double | floating-point number | ||||
| %e, %E | double | floating-point number with exponent | ||||
| %% | the % character | |||||