My advice is to pass the array by reference, like this:
void func (float (& args) [3])
{
args [0] += 1;
args [1] *= 2;
args [2] /= 3;
}
void setup ()
{
float foo [3] = { 5, 6, 7 };
func (foo);
}
void loop () {}
My advice is to pass the array by reference, like this:
void func (float (& args) [3])
{
args [0] += 1;
args [1] *= 2;
args [2] /= 3;
}
void setup ()
{
float foo [3] = { 5, 6, 7 };
func (foo);
}
void loop () {}