Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  > ??? 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]?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: