Afficher un message
Vieux 04/05/2008, 21h57   #4
santosh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: What is the difference between: int a (*daytab)[13] and int a *daytab[13]

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.

  Réponse avec citation
 
Page generated in 0,04587 seconds with 9 queries