int arr[]={1,2,3};
int* A=arr;
I wonder if arr is simply an int pointer that points to the first element of the array or
if there's any difference between A and arr.
Also I wonder: while &arr is the pointer points to the whole array, what does &A point to?
I'll appreciate it if somebody could explain how & works for a pointer.
It isn't.
arris an array, and not a pointer.Ais a pointer.Just like
&arrpoints toarr(which is an array), so does&Apoint toA(which is a pointer).