bert
5/16/2011 6:14:00 PM
On Monday, May 16, 2011 7:00:29 PM UTC+1, Joel C. Salomon wrote:
> On Monday, May 16, 2011 1:52:16 PM UTC-4, Alain Spineux wrote:
> > What does
> > int tab[n];
> > means ?
>
> It's the same as
>
> int tab[17];
>
> only with 17=n.
But note that the declaration of tab[17]
would provide well-defined access only to
the variables from tab[0] to tab[16].
I understand that the address of tab[17]
can legitimately be constructed with the
'&' operator, but access to tab[17] itself
is undefined. Therefore, in the originally
posted code, the same applies to tab[n].
--