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 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
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, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
question
Computers and Technology, 25.06.2019 11:00
What is data validation? (in a simple definition)
Answers: 2
You know the right answer?
#include
#include

int main( )
{
int pid;
int value = 5;
<...
Questions
question
Mathematics, 09.11.2019 21:31
question
Mathematics, 09.11.2019 21:31
Questions on the website: 13722361