Possible Duplicate:
In C arrays why is this true? a[5] == 5[a]
Someone told me this... I didn't believe them at first but it does work. If x and y do not change throughout the code, why does this work:
int x [5] = { 0,1,2,3,4};
int y = 3;
if(x[y] == y[x]){
cout << "Why..." << endl;
}
How does x array's value in index y is = the x index's value's in array y? But there was no y array.