Question: m) (5 points) Consider the following C program: i #include 2 #include&unistd.h> 3 include 5 int value= 5; 7 int main) ( pid_t pid =

 m) (5 points) Consider the following C program: i #include 2

m) (5 points) Consider the following C program: i #include 2 #include&unistd.h> 3 include 5 int value= 5; 7 int main) ( pid_t pid = 0; pid=fork(); if (pid-0) 10 12 13 value += 10; 14 else if (pid> 0) wait (NULL); value + 5; fprintf (stderr, 15 16 17 18 19 exit (0); 20 "%d ", value); Give and explain the output of this program. (n) (6 points) Consider the following series of command lines and outputs (executed in this order): 1 $ PAGER less 2 s export EXINIT "shovnode shovnatch ruler" 3 $ bash 4 echo $PAGER 6 echo SEXINIT 8 $ export A=10 9 exit 10 echo SA 12 $ i) What is printed on line 5? i) What is printed on line 7? ii) What is printed on line 11

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!