There is no difference b/w a[i] and i[a] System can understand boyh as *(a+i) *(i+a).
Let us take an eg:let address location of array named by a is "100" and a is an int type array let " i " is the 3rd eliment i.e i 2.then a[i] *(100+2(4bytes))( *(104) which is starting location of 3rd eliment's of array.
Now i[a] *(2(4bytes)+100) (*(104)) which is also represents the same 3rd eliment's starting address location. so both are same.
Thank U.
Monday, August 17, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment