5. What is displayed by the following program after the call to execl?


#include
#include

int main()
{
if (fork() == 0)
execl("prog.exe", "prog.exe", NULL);

cout << "After execl" << endl;

return 0;
}

a. The parent process will display "After execl"
b. The child process will display "After execl"
c. Neither the parent process nor the child process will display "After execl"
d. The program does not create a child process
e. Both the parent process and child process will display "After execl"

a. The parent process will display "After execl"

Computer Science & Information Technology

You might also like to view...

________, and then click the desired pie chart slice to select an individual pie chart slice

A) Click on the pie chart B) Triple click C) Double click D) Right click

Computer Science & Information Technology

When you choose to trace dependents and trace precedents, Excel puts arrows on the workbook to show you how the formula in the cell is constructed

Indicate whether the statement is true or false.

Computer Science & Information Technology