--- id: 5faz2y2e tags: - C created: Thursday, February 29, 2024 | 17:41 --- # Format specifiers in C Format specifiers define the type of data to be printed or interpolated in standard output. You need to use format specifiers whenever you are [printing values in C](./Printing_values_in_C.md). For example: ```c int age = 37 printf("My age is %i", age) ``` | Specifier | Usage | | --------- | ------- | | `%c` | char | | `%s` | string | | `%n` | nothing | | `%i` | integer | | `%f` | float |