Question: What is one possible output of the following program? code / ecf / global - forkprob 3 . c 1 #include csapp.h 2 3

What is one possible output of the following program? code/ecf/global-forkprob3.c 1 #include "csapp.h"234 int main(){ int a =5; 567 if (Fork()!=0) printf("a=%d
",--a); 8910 printf("a=%d
",++a); exit(0); 1112} code/ecf/global-forkprob3.c

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 Programming Questions!