Exercise 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.