sizeof(array) / sizeof(array[0])

Em 2/4/2009 11:49, Michael Sullivan escreveu:
>
> The thread on returning arrays from a function raises a question to my
> mind. Is there a way to determine how many elements are in the array
> without explicitly passing the number of elements to the function? I
> believe that in Java this is possible, but is it in C++? This is not a
> homework question; just idle curiousity...
>
> 

Reply via email to