how to create an array with both members and number of members undefined

Yep, doing it right now actually...

Setting up functions where I repeat stuff or where I find it too complicated to read and figure out the different tasks...

Would appreciate an answer to this as part of my spring cleaning:

Quote from: robtillaart on Today at 06:27:14 PM
Code:
unsigned int servoPos[valNumber];
declare the array with 8 bit ints iso 16bit ints, as the value of the servo is always 0..179 WIll halve the size of the array

uint8_t servoPos[valNumber];

Great!
Does that mean I can also do this for:
Code:
const unsigned int valNumber = 500; //variable to contain number of array members

And:
Code:
const int waitForServo = 5; //delay time to let servo get to position

?