|
|
|
|
|
by defrost
92 days ago
|
|
> "How do I get the third element of this array" should be `arr[2]` Ask a carpenter. To get to the third pigeonhole in a racked series of one foot per pigeonhole unit you literally offset two feet from the origin. In C (of course), arr[2] works as well as does 2[arr] as both are literally just syntactic sugar for arr+2 ie. The third pigeon hole begins after passing two whole pigeonholes. |
|
Indexes start at 1, offsets start at 0.