Please refere the following program
using namespace std;
cout<<a[-1]<<" " <<a;
To my surprise this code works perfectly ok. I thought it will give me some compiler error or runtime error as I am writing in the array index which is undeclared.
My question is
1. What this declaration a means.
2. Is it that in C++ the array bounds are flexible?
3. Or is it a bug in C++