0

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;
}
Random Davis
  • 6,662
  • 4
  • 14
  • 24
connor449
  • 1,549
  • 2
  • 18
  • 49

0 Answers0