Menu

(Solved) : Include Includeint Main Int Value 10 Int Pid Value 5 Pid Fork Pid 0 Value 20 Printf Value Q44141802 . . .

#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 onthe screen when the above program is executed? more than 1 answercan be right.

a) 10

b) 20

c) 50

d) 35

e) 25

f) 15

Expert Answer


Answer to #include #include int main( ) { int value = 10; int pid; value += 5; pid = fork( ); if (pid > 0 ) { value += 20; } prin…

OR