Question: we are getting the following error in our c program : munmap _ chunk ( ) : invalid pointer. Kindly find the screenshot to resolve
we are getting the following error in our c program : munmapchunk : invalid pointer. Kindly find the screenshot to resolve our issuestruct s
int start;
int end;
int a;
int countPrime;
;
int primeint num
if num return ;
for int ;num ;
if num return ;
return ;
void tfunctionvoid args
struct tstruct args;
int start t start;
int end t end;
int count ;
forint start; end;
int ;
if primen
count ;
t countPrime count;
int tr mallocsizeofint;
tr count;
pthreadexittr;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
