I am passing an array of type int pthread_create and getting error:
histogram.c:138:3: warning: passing argument 3 of ‘pthread_create’ from incompatible poi
The compilation error is because pthread_create expects void *output_results(void *bins), but you have int *bins.
pthread_create
void *output_results(void *bins)
int *bins
Also, the declaration of output_results you're using does not match its definition.
output_results