www.thecareerplus.com
The CareerPlus
Home Technical Resources Programming Expressions
Wednesday 08th September 2010
 
 
Is 5[array] the same as array[5]?

Discuss it!          


Yes!

Since array subscripting is commutative in C. That is


array[n] == *((array)+(n)) == *((n)+(array)) == n[array]


Discuss it!          

CrackTheIntervew.NET
Advertisement
 
Top! Top!