"jason" <jisis@notmal.com> wrote in message
> Hello,
>
> I'm a beginning C programmer and I have a question regarding arrays and
> finding the number of entries present within an array.
>
Arrays decay to pointers when you pass them to functions. So you need to
pass in the number of elements as a separate parameter.
When you start writing real programs you will find that the number of cases
where you know an array's size at compile time is quite few. Usually the
size is determined by the data the user inputs, so you must allocate the
space with malloc().
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm