Computers and Technology
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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, Jasten
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, micahpauleen748
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, rscvsdfsrysas3712
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
image
Computers and Technology, 24.06.2019 03:00, 2020IRodriguez385
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
Do you know the correct answer?
#include
#include

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

Questions in other subjects:

Konu
Arts, 30.04.2021 22:10
Konu
Mathematics, 30.04.2021 22:10
Konu
Mathematics, 30.04.2021 22:10
Konu
History, 30.04.2021 22:10