what is the difference between int *a[20] and int (*a)[20]???????
Hİ everybody,
Collapse
X
-
Tags: None
-
Originally posted by ExtremistHi there
int *a[20] would mean a pointer to an array of 20 ints
int (*a)[20] would mean an array of 20 pointers to ints
thank you very muchhComment
-
This is not true:
Originally posted by Extremistint *a[20] would mean a pointer to an array of 20 ints
int (*a)[20] would mean an array of 20 pointers to ints
int *a[20]; -> a is an array of 20 pointers to int
int (*a)[20]; -> a is a pointer to an array of 20 intsComment
Comment