error: initializing argument 3 of ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)
#include#includevoidthread(void){inti;for(i=0;i<3;i++)printf("Thisisapthread.\n");}intmain(void){pthread_tid;inti,ret;ret=pthread_create(&id,NULL,(void*)thread,NULL);for(i=0;i<3;i++)printf("Thisisthem