Thanks for reply but tell me two thing , is it true or not? is NULL is not equal to (void*)0 ?? AND int a=20; int b=(int)a ; // Whats wrong in here??
Similarly for void * TraCISagar::sender(void* a); then while calling in pthread as pthread_create(&thread1,NULL,(void*)sender,NULL) instead of pthread_create(&thread1,NULL,sender,NULL); by the way i already implemented NULL instead of (void*)0 and pthread_create(&thread1,NULL,sender,NULL); But not getting why this problem is occurring? On Tue, Mar 27, 2012 at 8:37 AM, SAMM <somnath.nit...@gmail.com> wrote: > Yaa Senthil is right , I overlooked it . In 3rd argument also it is > expecting an address while u r passing the pointer . > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- **KIND REGARDS -- SAGAR PAREEK COMPUTER SCIENCE AND ENGINEERING NIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.