how this works | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

how this works

In this ' i ' array is not decalared https://code.sololearn.com/clQIE7mWkwdE/?ref=app

8th Mar 2019, 12:27 PM
Shobhit
Shobhit - avatar
1 Answer
+ 8
a[i] is the same as *( a + i ) i[a] simply swaps the lhs and rhs: *( i + a ) since the + operator is commutative it doesn't matter on which side the operands are, the result is the same either way.
8th Mar 2019, 12:47 PM
Dennis
Dennis - avatar