diff --git a/content/notes/09-intro-to-c-2.md b/content/notes/09-intro-to-c-2.md index 5ceebe7c2..3fb1180e5 100644 --- a/content/notes/09-intro-to-c-2.md +++ b/content/notes/09-intro-to-c-2.md @@ -44,4 +44,13 @@ names are allocated to emmory locations of declaration ### Arrays - strings -- \ No newline at end of file + - terminated by "\0" +- argc, argv[] + - length specified +- null terminated + - array of pointers + +### Pointer arithmetic +- ++ move a pointer fowards in an array +- -- move a pointer back in an array +- these operations are "type aware" and increment (the pointer) by the size of the elements of the array \ No newline at end of file