We cannot simply add both the complex numbers as they contain both real and imaginary numbers.
complex3.real = complex1.real + complex2.real;
complex3.imag = complex1.imag + complex2.imag;
Take care of the values when subtraction and division is done . Programs are learnt when experimented.:)
Thats how addition is done for the complex numbers and the same can be applied for the remaining arithmetic operations. Please see the attached file on how the addition is done .