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, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
You know the right answer?
#include
#include

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