3 ms·
> ??? x = &arr; Does this compile? I thought an array was treated like a constant pointer, inexistent in memory so you cannot take its address, increment it, o
by alter8 14y ago
> ??? x = &arr;
Does this compile? I thought an array was treated like a constant pointer, inexistent in memory so you cannot take its address, increment it, or attribute it another value. Although the point made by RegEx about sizeof, which I didn't remember, convinced me that an array is not actually a constant pointer.
To make my thoughts clear, if arr is equivalent to &arr[0], then wouldn't &arr be equivalent to &&arr[0]?