Let assume that I want to get space for an array of x double
, x being an integer.
Can someone explain me the difference between
double myArray[x];
and
malloc(x*sizeof(double));
excepted the fact that malloc()
returns a void
pointer ?
Thank you in advance for your answer.