Y
Hacker News
new
|
ask
|
show
|
jobs
by
teo_zero
630 days ago
Correct. A method to extract a pointer from an array already exists:
int *p = &arr[0];
The mistake is to allow this:
int *p = arr;
1 comments
uecker
630 days ago
And yet, coding styles do not prohibit it and there is no compiler that has a warning.
link