I am working with a piece of code that creates a data structure and puts in it 2 values. It looks like this:
void func() {
    double x[] = {y, z};
}
What is the type of the object x? I am trying to return it from a function, so I need to specify the type.
I tried this, but it breaks with error: no viable overload '='
double func() {
    double x[] = {y, z};
    return x;
}
 
    