// ********************************* // ** Example of use of malloc() ** // ** PJM CompII Lab. 2 ** // ********************************* #include #include #include void Calculate_Derivative(float *, float, int); int main(void) { float theta=0.0, delta_theta, *sin_values; int n; int size=513; sin_values=(float *) malloc(size*4); // Allocate memory for array delta_theta=(4*M_PI)/(size-1); for (n=0;n