J
John Smith
Is this a no-no? My compiler doesn't like it.
typedef struct cplex {
double real;
double imag;
} cplex;
int main(void)
{
cplex a;
a = {.5, 14.134725};
...
return 0;
}
Compiler has no problem when declaration
and initialization are combined:
cplex a = {.5, 14.134725};
typedef struct cplex {
double real;
double imag;
} cplex;
int main(void)
{
cplex a;
a = {.5, 14.134725};
...
return 0;
}
Compiler has no problem when declaration
and initialization are combined:
cplex a = {.5, 14.134725};