Possible Duplicate:
In C++ books, array bound must be constant expression, but why the following code works?
see this code
#include<iostream>
int main
{
using namespace std;
int a=7;
char arr[a];
return 0;
}
in my book it is written that array_size must be a constant but codeblocks is not giving error in it...
it is not the only case.. there are several other examples also.
who is wrong IDE, compiler, or any other thing???
does using newer or older book can cause such issue??