Checkpoint 2.8.1. Format descriptors.
- %f
- float
- %lf
- double
- %d
- int
- %u
- unsigned int
- %c
- char
- %s
- a C string (e.g., char *)
- %p
- an address (e.g. any pointer type, like int *)
- %ld
- long
- %lu
- unsigned long
- %lld
- long long
- %llu
- unsigned long long
Match the format string to the type of variable it works with in scanf.