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)
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)
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"