Hello,
I found out that below code is illegal:
So, why second line is incorrect? After all content of a cannot be change since it is declared as 'const'. Second even if it wasn't const, they memory for array shall be reserved once, so who cares what happened to variable a (in this example) after memory for array was allocated?Code:const int a = 10; int b[a];