It is true that an array "name" is a pointer to its base address...
No, it's not. It is true that an expression of array type, when it is not the subject of either the unary-& or sizeof operators, evaluates to a pointer to the array's first element.
sizeof array
gives the size of the whole array, not the size of a pointer.
&array
gives the address of the whole array, not the address of a pointer.
No, it's not. It is true that an expression of array type, when it is not the subject of either the unary-& or sizeof operators, evaluates to a pointer to the array's first element.
gives the size of the whole array, not the size of a pointer. gives the address of the whole array, not the address of a pointer.