-4

I am a beginner, how to define vectors of complex numbers with random values of size N in C program. With this code

complex*vector=(complex*)malloc(sizeof(complex)*N)
Milindu Sanoj Kumarage
  • 2,714
  • 2
  • 31
  • 54

1 Answers1

0

You have two separate problems, both of which are already answered.

How work with complex numbers: How to work with complex numbers in C?

How to make an array of random numbers: To generate array of random numbers in a given range in "C"

Community
  • 1
  • 1
  • If I helped you, please reward me by marking the question answered :-) –  Feb 10 '14 at 13:02