11-05-2016, 07:40 AM
The following code can be compiled.
The "double type" has no imaginary parts.
So, I can say "assign to narrower essential type" ?
Code:
float f; // sizeof(float) = 4
double d; // sizeof(double) = 8
float _Complex fc; // sizeof(float _Complex) = 8
d = fc; // violate rule 10.3 ?
fc = d; // violate rule 10.3 ?
f = fc; // violate rule 10.3 ?
fc = f; // OK?
The "double type" has no imaginary parts.
So, I can say "assign to narrower essential type" ?
<t></t>