4

1 5

2 -4

-3 9

8 2

The first integer, call it n, is the number of

complex numbers to follow. The n complex numbers

are then listed. Your program must dynamically

allocate enough memory to store the array of n

complex numbers. Complex numbers must be stored

in a structure. (So you have an array of

structures.) Then your program should loop through

the array from end to front, and print out the

complex numbers in it. E.g., your output should

look like

8 + 2i

-3 + 9i

2 + -4i

1 + 5i

on stdout.

I have no idea how to allocate memory for something like this, if the stuff is inputted, how do u know how big the struct or array is to put the numbers in, can someone demonstrate the code for that part?

Thanks