Dealing with int arrays in c++ 2
Hi guys could anyone explain why does this program correctly even being a
bit starnge:
int main() {
int array[7]={5,7,57,77,55,2,1};
for(int i=0;i<10;i++)
cout<<i[array]<<", "; //array[i]
cout<<endl;
why does the program compile correctly??
return 0;
}
No comments:
Post a Comment