From 3aeeb9dac82eed89bd8584640f61da0f9033008c Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:31:34 -0600 Subject: [PATCH] vault backup: 2024-09-11 12:31:34 --- education/software development/ECE1400/C.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/education/software development/ECE1400/C.md b/education/software development/ECE1400/C.md index 48709bb..a6b82c4 100644 --- a/education/software development/ECE1400/C.md +++ b/education/software development/ECE1400/C.md @@ -50,9 +50,14 @@ Write a string to standard output. `f` indicates that it's a formatting string. Printf accepts a variable number of arguments, the first argument is the formatting string, then following arguments are the arguments to be inserted into the string. +TODO: examples ## `scanf` Read value(s) from stdin. `scanf` is to stdin as `printf` is to stdout. -The format of the input is specified \ No newline at end of file +The format of the input is specified using [formatting specifiers](#Formatting%20specifiers), and all following arguments are pointers pointing to variables to update. +### Examples + + +The validity of a `scanf` call is not necessarily checked at compile time, and so the number of outputs specified should match the number of inputs. \ No newline at end of file