mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-26 22:34:06 -06:00
441 B
441 B
| title | aliases | tags | |
|---|---|---|---|
| 10-intro-to-c-arrays-malloc-free |
|
Arrays
- must declare with size
uint32_t array[10];
float matrix[5][6];
- do not have methods
- array.size etc
- not bounds checked
- can write past the end
- to know must keep trach yourself or use sentinel value
- 'H' 'e' 'l' 'l' 'o' '\0' <- sentinel value
char *check = thing;
while(*check != '\0')
check++
length = check - thing