[try Beta version]
Not logged in

 
Is _Complex a macro or an operator?

Sep 2, 2014 at 7:00am
Hello everyone,

I've trying to see where _Complex is defined but I found nothing. Is _Complex a macro, is it an operator? How does int _Complex work?
Sep 2, 2014 at 7:03am
According to http://en.cppreference.com/w/c/keyword/_Complex it is a keyword.
Sep 2, 2014 at 1:50pm
_Complex is a keyword, although the normal usage is throgh the macro complex

Also note that "int _Complex" is an error, the only complex types in C are double complex, float complex, and long double complex (or, alternatively, double _Complex, float _Complex, and long double _Complex).

If you're using gcc to compile a C program, make sure to pass -pedantic-errors in addition to -std=c99
Last edited on Sep 2, 2014 at 1:54pm
Topic archived. No new replies allowed.