Question: #include #include int main( ) { int value = 10; int pid; value += 5; pid = fork( ); if (pid > 0 ) {

#include #include 
 
int main( )
{ int value = 10; int pid; value += 5; pid = fork( ); if (pid > 0 ) { value += 20; } printf(value); return 0; }

Question: Select all the values that may be printed on the screen when the above program is executed? more than 1 answer can be right.

a) 10

b) 20

c) 50

d) 35

e) 25

f) 15

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!