SyntaxFix
Write A Post
Hire A Developer
Questions
Change this line
double *ptr = malloc(sizeof(double *) * TIME);
to
double *ptr = malloc(sizeof(double) * TIME);