I am getting an error when i try to declare my array with a value from a different array. The issue is that i could change the value of the variable which would change the size of the array. I tried making the variable a constant value but that didn't seem to work either. Any way to get around this? Perhaps with a try/catch? Thanks.
1 2 3 4 5 6
void factor(int x[])
{
constint A=x[0],B=x[1],C=x[2];
int A_Multiples[A];
}