Exercise #19: Dynamic Arrays
Write a C-program that
- prompts the user to input a positive number n
- allocates memory for two n-dimensional floating point vectors a and b
- prompts the user to input 2n numbers to initialise these vectors
- computes and outputs the inner product of a and b
- frees the allocated memory
|