Is there a way to manipulate the size of an array?

alexandros301:

Secondly. Move the calculation of the array size to the loop() function and declare the array there. Pass the array, or a pointer to it and its size, to any functions that use it.

How do you do that?

How do you do what ? Pass variables to functions or something else ?