From ae6443676ab8b90476d19dfa1be11989be5c49ac Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Mon, 8 Aug 2022 11:41:12 +1200 Subject: [PATCH] vault backup: 2022-08-08 11:41:12 --- content/notes/09-intro-to-c-2.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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