The ampersand operator on an array returns the address of the entire array, while the ampersand operator on a pointer returns the address of the variable pointed to by the pointer. In other words, when used on an array, the result is a pointer to the first element of the array, whereas when used on a pointer, the result is a pointer to the memory address where the value stored by the pointer resides.
Asked: 2023-06-05 20:20:59 +0000
Seen: 1 times
Last updated: Jun 05 '23