What is the (double **) in front of a malloc mean?
<p>for example in this code:</p>

<pre><code>double **Data, *DataT;
Data = (double **)malloc(3*sizeof(double *)+3*12*sizeof(double));
</code></pre>

<p>I just read that malloc allocates memory from the heap. But i could not find what that (double **) meant in front of the malloc.
There is a line of code directly after this as well that i have seen this in.</p>

<pre><code>for (i = 0, DataT = (double *)(Data+3); i &lt; 3; i++, DataT += 12)
</code></pre>

<p>Here there is a (double *) in front of Data+3</p>

<p>Could you please explain to me what that does?
Thank you</p>
