Re: What is the difference between: int a (*daytab)[13] and int a *daytab[13]
by santosh <santosh.k83@[EMAIL PROTECTED]
>
May 5, 2008 at 01:27 AM
magicman wrote:
> What is the difference between: int a (*daytab)[13] and int a
> *daytab[13]
> thx
In a declaration the first one declares daytab as a pointer to an array
of 13 ints. The second declares daytab as an array of 13 int*.
For the first one
daytab[n]
will be of type int and for the second one
daytab[n]
will be of type int*.
PS. For 0 <= n <= 12 of course.