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 3 of 6 Topic 26056 of 26972
Post > Topic >>

Re: What is the difference between: int a (*daytab)[13] and int a *daytab[13]

by "Bartc" <bc@[EMAIL PROTECTED] > May 4, 2008 at 07:03 PM

"magicman" <ironsel2000@[EMAIL PROTECTED]
> wrote in message
news:11cc16fd-e18d-423d-a226-e02dbd62d0bc@[EMAIL PROTECTED]
 is the difference between: int a (*daytab)[13] and int a
*daytab[13]]

As written: nothing, they're both syntax errors.

On the other hand, int (*daytab)[13] is a pointer to an array of 13 ints.

While int *daytab[13] is an array of 13 pointers to ints.

(Thanks to a program cdecl.exe I've just downloaded. Otherwise I wouldn't 
have a clue either. And the existence of such a program suggests I'm not 
alone!)

-- 
Bartc
 




 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 Fri Jul 25 21:33:01 CDT 2008.