#include "header.h" Vector CreateVector(int n) { Vector x; x.n = n; x.fp = (float *) calloc(n,sizeof(float)); // Allocates a block of memory for a vector of n elements, each of them 'float' long, and initializes to 0. return x; } Vector ReadVector() { int i,n; float tmp; Vector x; scanf("%d",&n); // dimention of the vector x.n=n; x.fp = (float *) calloc(n,sizeof(float)); if (x.fp==NULL) exit (1); // If the function calloc() failed to allocate the requested block of memory, a NULL pointer is returned. for (i=0;i