C99 Complex Data Types

The compiler supports the C99 complex and imaginary data types when the C99 extensions option is enabled. C99 Complex Data Type shows an example.

Listing 1. C99 Complex Data Type
#include <complex.h>
complex double cd = 1 + 2*I;
Note: This feature is currently not available for all targets. Use #if __has_feature(C99_COMPLEX) to check if this feature is available for your target.