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

B

benj

Anybody has a good explaination to following question?

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

Rolf Magnus

benj said:
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.
 
A

amparikh

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top