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... > >
- Re: [c-prog] How many elements in the array? Paul Herring
- Re: [c-prog] How many elements in the array? Tyler Littlefield
- Re: [c-prog] How many elements in the array? Paul Herring
- Re: [c-prog] How many elements in the array? Tyler Littlefield
- Re: [c-prog] How many elements in the array... Paul Herring
- Re: [c-prog] How many elements in the array? Jim Dougherty
- Re: [c-prog] How many elements in the array? Michael Sullivan
- Re: [c-prog] How many elements in the array? Paul Herring
- Re: [c-prog] How many elements in the array? Tyler Littlefield
- Re: [c-prog] How many elements in the array? Jim Dougherty
- Re: [c-prog] How many elements in the array? Allison Vollmann
- Re: [c-prog] How many elements in the array? Paul Herring
- Re: [c-prog] How many elements in the array? John Gaughan
