TOC |
Prev
|
Next
Strings
Strings are not actually a type, so much as a convention.
- Pointer to an array of bytes
- Ends with a nul character,
'\0'
- You could use Pascal-encoded strings if you were crazy and masochistic.
char str[] = "Hello, world";
|H|e|l|l|o|,|w|o|r|l|d|\0|
TOC |
Prev
|
Next