View Single Post
  #7 (permalink)  
Old February 24th, 2004, 02:51 PM
pradeep_itguy pradeep_itguy is offline
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Because the Compiler takes the array base and adds the offset to it to get the value,
In the case
                  a[i] --> It is direct take the array base of "a" and move to offset i within that.
                  i[a] --> In this it is not direct but the compiler takes it in the same manner as the above statement.

The think K&R statement is right, if u r not getting this answer.

Regards
Pradeep P

It is not how much we do,
but how much love we put in the doing.

-Mother Theresa
Reply With Quote