Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: What is the...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 26056 of 26955
Post > Topic >>

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.
 




 6 Posts in Topic:
What is the difference between: int a (*daytab)[13] and int a
magicman <ironsel2000@  2008-05-04 11:49:22 
Re: What is the difference between: int a (*daytab)[13] and int
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-04 11:59:54 
Re: What is the difference between: int a (*daytab)[13] and i
"Bartc" <bc@  2008-05-04 19:03:49 
Re: What is the difference between: int a (*daytab)[13] and i
santosh <santosh.k83@[  2008-05-05 01:27:45 
Re: What is the difference between: int a (*daytab)[13] and i
Ben Bacarisse <ben.use  2008-05-04 21:42:14 
Re: What is the difference between: int a (*daytab)[13] and i
santosh <santosh.k83@[  2008-05-05 02:16:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 2:14:37 CDT 2008.