title: Error: Invalid use of void pointer
body: <p>Reading about void pointers:-</p>
  
  <ol start="3">
  <li>When we assign address of integer to the void pointer, pointer will become Integer Pointer.</li>
  <li>When we assign address of Character Data type to void pointer it will become Character Pointer.</li>
  </ol>
  
  <p>And the code:</p>
  
  <pre><code>  void main()
    {
    float f = 111.35;
    void * fp;
    fp = &amp;f;
    printf("%.2f\n",*fp);
    }
  </code></pre>
  
  <p>It shows the error follows :Invalid use of void pointer
  If I change the type of the pointer to a float * fp, there is no error.</p>