From 37759daba4f958ca3b292ec390b5f8fc380e3c2b Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Tue, 1 Oct 2024 21:01:24 -0600 Subject: [PATCH] vault backup: 2024-10-01 21:01:24 --- .../ECE1400/Chapter 7 Exercises.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/education/software development/ECE1400/Chapter 7 Exercises.md b/education/software development/ECE1400/Chapter 7 Exercises.md index 5f2538d..065ba74 100644 --- a/education/software development/ECE1400/Chapter 7 Exercises.md +++ b/education/software development/ECE1400/Chapter 7 Exercises.md @@ -23,4 +23,13 @@ printf(c); ``` Answer: -D is incorrect because `printf` operates on strings. \ No newline at end of file +D is illegal because `printf` operates on strings, not `char`s. + +> 6. For each of the following items of data, specify which one of the types `char`, `short`, `int`, or `long`is the smallest one guaranteed to be large enough to store the item. + +Answer: +A. Days in a month: `char` +B. Days in a year: `short` +C. Minutes in a day: `short` +D. Seconds in a day: `long` +