Question: 1. (3 Marks) You are given the following C program: Assume that the parent process ID is 560 and the child process ID is 561.

1. (3 Marks) You are given the following C program: Assume that the parent process ID is 560 and the child process ID is 561. What is the output of the program? 2. (3 Marks) How many times will this program print "HELLO"? Briefly justify your answer. #include $$ #include $$ #include $$ #include $$ int main() $\{\quad$ if ( execl ("/bin/ls", "1s", NULL) ==-1) { $\quad$ printf("HELLO\backslashn"); $\quad$ printf ("HELLO\backslashn"); CS.VS.924 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
