286 B
286 B
- We discussed using the expression
sizeof(a) / sizeof(a[0]
to calculate the number of elements in an array. The expressionsizeof(a) / sizeof(t)
wheret
is the type ofa
's elements would also work, but it's considered an inferior technique. Why?
- Write a declaration of