vault backup: 2024-10-07 14:43:40
This commit is contained in:
@ -38,6 +38,16 @@ In C, a `char` denotes a single byte of arbitrary encoding.
|
||||
## Variables
|
||||
A variable must be declared before it is assigned.
|
||||
|
||||
## Arrays
|
||||
### Finding the size of an array
|
||||
```c
|
||||
int arr[10];
|
||||
// The size of an array can be found by
|
||||
// determining the number of bytes allocated total and dividing that by the size of each element in the array.
|
||||
int arr_size = sizeof(arr) / sizeof(arr[0]);
|
||||
|
||||
```
|
||||
|
||||
|
||||
# Formatting specifiers
|
||||
# Standard library
|
||||
|
Reference in New Issue
Block a user