hey, i got an question about what is going on in the next code:
typedef struct {
double re,im;
} Complex;
Complex ComplexCreate(double r=0.,doublei=0.)
{
Complex c;
c.re=r;
c.im=i;
return c; // problem with this line
// my question is : is c getting duplicated and returning or does it return nothing
// when i we go back to the main
}
and i do know that in c++ i can and should use classes its just something that i want to understand for a test. thanks in advance for your help