
Using const Variables to Define the Size of an Array
C++ requires that the size of an array be a constant integral expression. However, the following code refuses to compile: // in const.hextern const int ID_LENGTH; // declaration// in const.cppconst