title: c pthread passing array of type int
body: <p>I am passing an array of type int pthread_create and getting error:</p>
  
  <pre><code>  histogram.c:138:3: warning: passing argument 3 of
   ‘pthread_create’ from incompatible   pointer type [enabled by default]
    expected ‘void * (*)(void *)’ but argument is of type ‘void * (*)(int *)’
  
    void *output_results();
    pthread_create(&amp;t2, NULL, output_results, (void *)bins);
  
    void *output_results(int *bins) {
        some code
    }
  </code></pre>