title: Necessity of use (float*) before malloc
body: <p>In the program of any pointer variable we often use : </p>
  
  <pre><code>float *x;
  x=(float*)malloc(a*sizeof(long int));
  </code></pre>
  
  <p>I want to know why we use <code>(float*)</code> in front of <code>malloc</code>?</p>