Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
CobrastanJorji
on July 26, 2017
|
parent
|
context
|
favorite
| on:
Remotely Compromising Android and iOS via a bug in...
I assume they mean that C's support for "arrays" is essentially just C's support for pointer arithmetic plus a mapping of a[b] to *(a+b).
Kubuxu
on July 26, 2017
|
next
[–]
You can even swap it a[b] equivalent to b[a].
shitgoose
on July 27, 2017
|
prev
[–]
shouldn't it be:
* (a + b * sizeof(T))
where T is array elements' type?
astrange
on July 27, 2017
|
parent
[–]
That's implied in + on a pointer. uint32_t* + 1 actually adds 4.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: