|
Complicated Declarations
typdef char *a[10]; /* declare type a */
a *b[5]; /* declare b, an array of 5 pointers */
/* to objects of type a */
An equivalent declaration of b is:
char *(*b[5])[10]; /* declare b, an array of 5 pointers */
/* to array of 10 pointers to char */
Complicated declarations are deciphered outward from nested parentheses. Copyright © 2003 The Stevens Computing Services Company, Inc. All rights reserved. |