fix format and broken link
This commit is contained in:
parent
e0e5cdef0c
commit
b4283adbb7
2 changed files with 10 additions and 10 deletions
|
|
@ -7,6 +7,14 @@ created: Thursday, February 29, 2024 | 17:41
|
|||
|
||||
# Format specifiers in C
|
||||
|
||||
| Specifier | Usage |
|
||||
| --------- | ------- |
|
||||
| `%c` | char |
|
||||
| `%s` | string |
|
||||
| `%n` | nothing |
|
||||
| `%i` | integer |
|
||||
| `%f` | float |
|
||||
|
||||
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).
|
||||
|
|
@ -17,11 +25,3 @@ For example:
|
|||
int age = 37
|
||||
printf("My age is %i", age)
|
||||
```
|
||||
|
||||
| Specifier | Usage |
|
||||
| --------- | ------- |
|
||||
| `%c` | char |
|
||||
| `%s` | string |
|
||||
| `%n` | nothing |
|
||||
| `%i` | integer |
|
||||
| `%f` | float |
|
||||
|
|
|
|||
|
|
@ -21,5 +21,5 @@ print("%d", age)
|
|||
|
||||
```
|
||||
|
||||
The `%d` is an example of a [format specifier](./zk/format-specifiers-in-c.md).
|
||||
It is the decimal integer format specifier.
|
||||
The `%d` is an example of a [format specifier](./Format_specifiers_in_C.md). It
|
||||
is the decimal integer format specifier.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue