Keith Thompson wrote:
> CBFalconer <> writes:
> [...]
> > When passed as function parameters, all arrays are automatically
> > passed as pointers to the first item in the array.
> [...]
>
> True, but incomplete.
>
> I've seen a lot of posters here say that arrays are converted to
> pointers when passed as function arguments. That's correct, but
> it's only a special case of a more general rule. An array
> expression is converted to a pointer in *most* contexts, not just
> in function calls (the only exceptions are when the array
> expression is the operand of a unary "sizeof" or "&" operator, or
> when it's a string literal used to initialize an array).
Why do you complicate the thread with this? It has nothing to do
with the OPs posting, to which I replied. That makes two similar
foolish postings in as many minutes.
--
Merry Christmas, Happy Hanukah, Happy New Year
Joyeux Noel, Bonne Annee.
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from
http://www.teranews.com