In terms of pointer arithmetic, since an array’s value is a pointer to its first element,
a[i] is equivalent to:
*(a+i)
Because pointer arithmetic is commutative, the above can be rewritten as *(i+a)
or—bizarrely: i[a]
--Philip Machanick, C and C++ in 5 days.
The i[a] is just surprising.
and I am still finding its equivalent in natural language
--edit, the answer
I suppose
[5]house
is just like '5th house', which also has the same meaning with house[5]
'house number 5'. Ehe, in my mother tounge, the object always precedes the sequence number: rumah kelima or rumah nomor 5 :D
0 rants:
Post a Comment