On Thu, Apr 2, 2009 at 3:49 PM, Michael Sullivan <[email protected]> wrote:
> Is there a way to determine how many elements are in the array
> without explicitly passing the number of elements to the function?
Not in C. You could perhaps have a struct:
typedef struct _array{
void* array;
int* count;
} _array;
and pass that around instead of the raw array. (The relevant
containers in C++, and Java basically do this for you in the
background.)
--
PJH
http://shabbleland.myminicity.com/tra
http://www.chavgangs.com/register.php?referer=9375