I want to know what is a difference between :
int *a[3]; 
And
int (*a)[3]; 
Thanks a lot , good luck .
int *a[3] => a is array of  int *
(a+1) will point to next integer by with the increment of integer size. 
int (*a)[3] => a pointer to array of 3 integers
(a+1) will point to next array of 3 integers, with the increment of (3 * integer size) 
to find details read more about pointer to arrays
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With