Sunday, August 2, 2009

Does anybody know how to dynamically create an array of 1000 doubles in C language?

please help im confused on how to get started

Does anybody know how to dynamically create an array of 1000 doubles in C language?
You can create a pointer of doubles. Another way is to use malloc and calloc.
Reply:double *da = calloc(1000, sizeof(double));


No comments:

Post a Comment