Strings
Strings are arrays of char
. Their size is the number of characters + 1 (the
NULL (\0
) character).
Code example:
or
or
or
Memory
Arrays and pointers are different:
If a function expects char *a
as an argument, how can it know if it’ll
be a pointer or an array?