int a[] = { 2 , 3 , 3 , 2 , 4 };int s = sizeof a / sizeof *a; // s == 5
for(int i = 0 ; i < s ; ++i) {
cout << a[a[a[i]]] << endl;// ... is equivalent to ...cout << i[a][a][a] << endl; // but I prefer this one, it's easier to increase the level of indirection (without loop)
}