Structure
Complex number is not part of the C data structure. But we can define a structure to represent complex numbers.
Define a structure called complex which consists of a real field and imag field, both of them are doubles.
struct complex {
double real;
double imag;
}
Declare three complex numbers:
struct complex a, b, c;
real and imag are called the member (or field) of the structure complex.