C pointer to array/array of pointers disambiguation

Posted by Richard J. Terrell on Stack Overflow See other posts from Stack Overflow or by Richard J. Terrell
Published on 2009-05-13T18:35:12Z Indexed on 2010/03/30 9:43 UTC
Read the original article Hit count: 304

Filed under:
|
|

What is the difference between the following declarations:

int* arr1[8];
int (*arr2)[8];
int *(arr3[8]);

What is the general rule for understanding more complex declarations?

© Stack Overflow or respective owner

Related posts about c

    Related posts about pointer