Question: Suppose we have the following thread to return long value to the parent thread void * return _ long _ thread ( void * arg
Suppose we have the following thread to return long value to the parent thread
void returnlongthreadvoid arg
long n;
static long n;
long plong mallocsizeoflong;
if p NULL exit;
some work is done and the same value is saved into n n and p
return;
which of the following should be used as return statement to be safe in any circumstances?
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
