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
Get step-by-step solutions from verified subject matter experts
