By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,078 Members | 1,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,078 IT Pros & Developers. It's quick & easy.

difference between: int *a[10][10] and int (*a)[10][10]

P: n/a
Anybody has a good explaination to following question?

what is the difference between:
int *a[10][10] and int (*a)[10][10]

Mar 26 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
benj wrote:
Anybody has a good explaination to following question?

what is the difference between:
int *a[10][10] and int (*a)[10][10]
The first is an array of 10 arrays of 10 pointers to int.
The second is a pointer to an array of 10 arrays of 10 int.

Mar 26 '07 #2

P: n/a
On Mar 26, 1:43 pm, "benj" <hojotool...@gmail.comwrote:
Anybody has a good explaination to following question?

what is the difference between:
int *a[10][10] and int (*a)[10][10]
1>The first one is an array of integer pointers ( multidimensional
array of pointers)
2>The second one is a pointer to an 10*10 array of ints.

Mar 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.