first question
1) Given the C code below, what would the address spacecontain in each of its areas?
int y = 9; // Global variable
int fun()
{
int x = 1;
for (int i = 0; i if (x % 2 ==0)
x++;
return y;
}
second question :
2 )The code below invokes the System Callwait(), what is its purpose?
short pid;if ((pid = fork()) == 0) { /* some code is here */ exit(n);} else { int Attribute; while(pid != wait(&Attribute));}
3 ) Third question :
In the system call:
execl(“/home/primes”, “primes”, “700”, 0);
Where would the parameter 700 be stored in the child’s addressspace?
Expert Answer
An answer will
PayPal Gateway not configured
PayPal Gateway not configured