L
lwawrzyniak
Wondering, wondering in hopeless night...
int i;
int sum=0;
int array[5] = {1,2,3,4,5};
for (i=0; i<5; i++) sum += array;
for (i=0; i<5; i++) sum += i[array];
I understand why operator [] is commutative, but I'm curious as to
whether anyone has ever found a practical use for the "index[address]"
notation.
FAQ says: "no useful application outside of the Obfuscated C Contest."
What say you?
Thanks!
int i;
int sum=0;
int array[5] = {1,2,3,4,5};
for (i=0; i<5; i++) sum += array;
for (i=0; i<5; i++) sum += i[array];
I understand why operator [] is commutative, but I'm curious as to
whether anyone has ever found a practical use for the "index[address]"
notation.
FAQ says: "no useful application outside of the Obfuscated C Contest."
What say you?
Thanks!