HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by messe | Hacker News Reader
Parent
Full thread
messe
·
Nope, a[b] is equivalent to *(a + b) regardless of a and b.
View on HN
sureglymop
·
Given that, why don't we use just `*(a + b)` everywhere?
Wouldn't that be more verbose and less confusing? (genuinely asking)
tomsmeding
·
Do you really think that `*(a + i)` is clearer than `a[i]`?
sureglymop
·
Not necessarily. I think it's confusing when there are two fairly close ways to express the same thing.
Reply on news.ycombinator.com