✏️ Explanatory Question
C provides multiple format specifiers for different data types. Below are the most commonly used ones:
| Specifier | Data Type | Description |
|---|---|---|
| %d | int | Integer value |
| %f | float | Floating-point number |
| %c | char | Single character |
| %s | string | String of characters |
| %lf | double | Double precision float |
| %x | int | Hexadecimal format |
| %o | int | Octal format |