subject
Computers and Technology, 14.02.2020 01:16 Azihan

#include
#include

int main( )
{
int pid;
int value = 5;

pid = fork( );
if (pid == 0)
{
execlp("/bin/ls", "ls", NULL);
value += 10;
printf(value);
} else
{
wait(NULL);
}

return 0;
}
What output is printed on the screen when the above program is executed?

a. No output is printed on the screen
b.15
c.5
d.10

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
What are the different parts of computer
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
You know the right answer?
#include
#include

int main( )
{
int pid;
int value = 5;
<...
Questions
question
Mathematics, 03.12.2020 01:30
Questions on the website: 13722360