diff --git a/education/software development/ECE1400/Chapter 2 Exercises.md b/education/software development/ECE1400/Chapter 2 Exercises.md index 26ff1d9..8819f9d 100644 --- a/education/software development/ECE1400/Chapter 2 Exercises.md +++ b/education/software development/ECE1400/Chapter 2 Exercises.md @@ -21,6 +21,27 @@ available for its completion. ``` # \#5 (A): `100_bottles` is not a legal C identifier because C identifiers cannot start with a number. - # \#6 -Double underscores are typically used to denote statements reserve \ No newline at end of file +Double underscores are typically used to denote statements reserved by the compiler, and in C++, double underscores are used in name mangling and so they cannot be used entirely. More subjectively, it can be hard to tell how many underscores are present. +# \#7 +(A): `for` +(E): `while` + +# \#8 +14. + +Work: +1. `answer` +2. `=` +3. `(` +4. `3` +5. `*` +6. `q` +7. `-` +8. `p` +9. `*` +10. `p` +11. `) +12. `/` +13. `3` +14. `;`