eh, make sense!
eh, make sense!
?Code:size_t arrlen (void** arr) { size_t i; for (i = 0; arr[i] != NULL; i++); return i; }
Is it required a NULL element in the array, as it's mentioned above?
Correct. Here, as mentioned earlier, you're simply saying "stop on a null". There is nothing in the language that itself specifies such a terminator as the "right" way to count elements. And again, it requires that you actually place one there, for it to work the way they're using it.
Quzah.
Hope is the first step on the road to disappointment.