You pass it as a function argument.

If you declared the array within the block you are trying to access it,
you can use sizeof() to get the total bytecount (not the number of
elements).  However, if you pass it to a function, sizeof() will just
return the size of a pointer on your machine (probably 4).

Anyway, you ALWAYS need to pass the size of an array along with the array,
unless you have some sort of terminating marker (like NULLs for strings).

Jon

On Fri, 27 Jun 2003, Lazor, Ed wrote:

> Both actually.
>
> The specific question I'm trying to answer right now is... How do find the max index 
> of an array?
>
> I tend to come up with a lot of questions like that as I'm learning and any mailing 
> lists would be helpful.  I'm doing network programming on a RedHat box, so I'm 
> assuming RedHat specific lists would be ideal.
>
> What do you think?
>
> -Ed
>
>
>
> > -----Original Message-----
> > On Friday 27 June 2003 21:05, Lazor, Ed wrote:
> > > Know of any good mailing lists for C Programming on RedHat?
> > > -Ed
> >
> >
> > That's kind of a tall order there Ed.  Are you looking for beginner's
> > level programming to learn the 'C' language or somthing that'll help
> > with the finer intracacies of the "Red Hat Way"?  If the former,
> > there's no need to focus on Red Hat or, for that matter,
> > Linux at all.
> > Can you be more specific?
>
>
> DISCLAIMER:
> This message is intended for the sole use of the individual to whom it is addressed, 
> and may contain information that is privileged, confidential and exempt from 
> disclosure under applicable law. If you are not the addressee you are hereby 
> notified that you may not use, copy, disclose, or distribute to anyone the message 
> or any information contained in the message. If you have received this message in 
> error, please immediately advise the sender by reply email and delete this message.
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://www.redhat.com/mailman/listinfo/redhat-list
>


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to