//VALID:
constint CONSTANT=100;
int integerArray[CONSTANT]={ 0 };
//but after getting input let's say:
cin>>randomInteger;
int integerArray[randomInteger]; // This is invalid.
// VISUAL STUDIO 13 Says : randomInteger must be a constant; If so?
constint CONSTANT=randomInteger; //This is also invalid. How to get user defined
//Input in a constant variable?
Question: Why? How to resolve this? I know dynamically allocation other than this.
I am using VISUAL STUDIO 13 & codeblocks 12. Mostly VS 13.