Fairly new programmer here, and an advance apology for silly questions.
I have an int variable in a program that I use to determine what the lengths of my a
int
When exactly do you know the correct value? If you read it from a file or whatever, you can just say:
const int n = determine_correct_value();