I am trying to figure out the difference if any between these two lines of code. I exceeded the index limit and that in return outputted garbage as expected for both so they behave the same I presume but I am unsure and wanted to get an definite answer.
Thank you in advance.
arr[] = {1,2,3,4,5,6};
cout << arr[5] << endl;
cout << 5[arr] << endl;