According to my understanding of the standard, both of
_Complex double c1; (1)
double _Complex c2; (2)
should be syntactically correct and equivalent. Now, there's
been a recent thread here according to which (1) is not
accepted by at least one major compiler. On the other hand,
in existing code I'm working on I have almost exclusively
seen (1) and very rarely (2); gcc's documentation also uses
(1) and never (2).
Is my assumption above correct that both styles are legal
in strictly conforming code?
If yes, which style is preferable, seeing that not all
compilers implement both styles?
Comment