From 3ec695e47d544130ef1fffbca8a6150f9c0af185 Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Mon, 8 Aug 2022 11:31:31 +1200 Subject: [PATCH] vault backup: 2022-08-08 11:31:31 --- content/notes/09-intro-to-c-2.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/content/notes/09-intro-to-c-2.md b/content/notes/09-intro-to-c-2.md index 04e9d847f..5ceebe7c2 100644 --- a/content/notes/09-intro-to-c-2.md +++ b/content/notes/09-intro-to-c-2.md @@ -34,4 +34,14 @@ names are allocated to emmory locations of declaration - changes to the parameter do not propogate to the caller ## Call by address -- address of parameter is passed to the rountine \ No newline at end of file +- address of parameter is passed to the rountine +- changes do propogate back to the caller +- more efficient because we only need to pass a pointer and not a value + +### Multiple results +- c routine can return at most one value +- you can use input parameters which are pointers for "returning" results + +### Arrays +- strings +- \ No newline at end of file