I have these two supposed constants:
int const MATRIX_SIZE = 1000;
int const LONGEST_LR_LINK = (int)floor(MATRIX_SIZE/2);
I am attempting to declare an array:
int lrLinkArray [LONGEST_LR_LINK];
I get the error:
error: array bound is not an integer constant before ‘]’ token
It would not be that much trouble to manually plug in whatever half MATRIX_SIZE is for LONGEST_LR_LINK, but I am curious as to what a solution to this would be. Is it bad practice to do any kind of calculation for a const?