notes/education/software development/ECE1400/Chapter 8 Exercises.md

3 lines
286 B
Markdown
Raw Normal View History

2024-10-09 02:43:52 +00:00
> 1. We discussed using the expression `sizeof(a) / sizeof(a[0]` to calculate the number of elements in an array. The expression `sizeof(a) / sizeof(t)` where `t` is the type of `a`'s elements would also work, but it's considered an inferior technique. Why?
> 3. Write a declaration of