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` +